depth_sensing_gpu_staleView.https.html (850B)
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="../staleViewsTests.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 getDepthInformation() throws when not run with stale XRView, `gpu-optimized`", 19 staleViewsTestFunction, 20 fakeDeviceInitParams, 21 'immersive-ar', { 22 requiredFeatures: ['depth-sensing'], 23 depthSensing: VALID_DEPTH_CONFIG_GPU_USAGE, 24 }); 25 26 </script>