summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webxr/resources/webxr_check.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webxr/resources/webxr_check.html')
-rw-r--r--testing/web-platform/tests/webxr/resources/webxr_check.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webxr/resources/webxr_check.html b/testing/web-platform/tests/webxr/resources/webxr_check.html
new file mode 100644
index 0000000000..2d8e5b387d
--- /dev/null
+++ b/testing/web-platform/tests/webxr/resources/webxr_check.html
@@ -0,0 +1,17 @@
+<script src=webxr_util.js></script>
+<script>
+'use strict';
+let definedObjects = [];
+let undefinedObjects = [];
+
+forEachWebxrObject((obj, name) => {
+ if(obj == undefined) {
+ undefinedObjects.push(name);
+ } else {
+ definedObjects.push(name);
+ }
+});
+
+window.parent.postMessage({ undefinedObjects, definedObjects}, '*');
+
+</script> \ No newline at end of file