summaryrefslogtreecommitdiffstats
path: root/dom/vr/test/mochitest/runVRTest.js
blob: d5a80853e035f0073acd3958a1bfc7431df32d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function runVRTest(callback) {
  SpecialPowers.pushPrefEnv(
    {
      set: [
        ["dom.vr.puppet.enabled", true],
        ["dom.vr.require-gesture", false],
        ["dom.vr.test.enabled", true],
        ["dom.vr.display.enumerate.interval", 0],
        ["dom.vr.controller.enumerate.interval", 0],
      ],
    },
    () => {
      VRServiceTest = navigator.requestVRServiceTest();
      callback();
    }
  );
}