tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

depth_sensing_cpu_inactiveFrame.https.html (875B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script src="../../resources/webxr_util.js"></script>
      5 <script src="../../resources/webxr_test_asserts.js"></script>
      6 <script src="../../resources/webxr_test_constants.js"></script>
      7 <script src="../../resources/webxr_test_constants_fake_depth.js"></script>
      8 <script src="../inactiveFrameTests.js"></script>
      9 
     10 <script>
     11 
     12 const fakeDeviceInitParams = {
     13  supportedModes: ["immersive-ar"],
     14  views: VALID_VIEWS,
     15  supportedFeatures: ALL_FEATURES,
     16 };
     17 
     18 xr_session_promise_test("Ensures appropriate depth methods and attributes throw when not run in an active frame, `cpu-optimized`",
     19  inactiveFrameTestFunction,
     20  fakeDeviceInitParams,
     21  'immersive-ar', {
     22    requiredFeatures: ['depth-sensing'],
     23    depthSensing: VALID_DEPTH_CONFIG_CPU_USAGE,
     24  });
     25 
     26 </script>