xrSession_getLightProbe_ended.https.html (646B)
1 <!DOCTYPE html> 2 <body> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <script src="../resources/webxr_util.js"></script> 6 <script src="../resources/webxr_test_constants.js"></script> 7 8 <script> 9 xr_session_promise_test( 10 "getLightProbe rejects on an ended session", 11 (session, controller, t) => { 12 return session.end().then(() => { 13 return promise_rejects_dom(t, "InvalidStateError", session.requestLightProbe()) 14 }) 15 }, 16 IMMERSIVE_AR_DEVICE, 17 'immersive-ar', 18 {'requiredFeatures': ['light-estimation']}); 19 20 </script> 21 </body>