summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html')
-rw-r--r--testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html b/testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html
new file mode 100644
index 0000000000..bf8d14a8f5
--- /dev/null
+++ b/testing/web-platform/tests/webxr/xrDevice_isSessionSupported_inline.https.html
@@ -0,0 +1,22 @@
+<!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>
+ xr_promise_test(
+ "isSessionSupported resolves to true when inline options supported",
+ (t) => {
+ return navigator.xr.test.simulateDeviceConnection(TRACKED_IMMERSIVE_DEVICE)
+ .then( (controller) => {
+ // Inline sessions should be supported.
+ return navigator.xr.isSessionSupported('inline').then((supported) => {
+ t.step(() => {
+ assert_true(supported);
+ });
+ });
+ });
+ });
+ </script>
+</body>