summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html')
-rw-r--r--testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html b/testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html
new file mode 100644
index 0000000000..23fe1c6ec5
--- /dev/null
+++ b/testing/web-platform/tests/webxr/light-estimation/xrSession_getLightProbe_notEnabled.https.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<body>
+ <script src=/resources/testharness.js></script>
+ <script src=/resources/testharnessreport.js></script>
+ <script src="../resources/webxr_util.js"></script>
+ <script src="../resources/webxr_test_constants.js"></script>
+
+ <script>
+ let fakeDeviceInitParams = IMMERSIVE_AR_DEVICE;
+
+ xr_session_promise_test(
+ "getLightProbe rejects if not enabled on session",
+ (session, controller, t) => promise_rejects_dom(t, "NotSupportedError", session.requestLightProbe()),
+ IMMERSIVE_AR_DEVICE,
+ 'immersive-ar');
+
+ </script>
+</body>