Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 52 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webxr/hit-test/idlharness.https.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>WebXR hit-test IDL tests</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script>
'use strict';
idl_test(
['webxr-hit-test'],
['webxr', 'geometry', 'dom'],
async idl_array => {
idl_array.add_objects({
// TODO: XRHitTestSource
// TODO: XRTransientInputHitTestSource
// TODO: XRHitTestResult
// TODO: XRTransientInputHitTestResult
XRSession: ['xrSession'],
// TODO: XRFrame
XRRay: ['new XRRay()'],
});
self.xrSession = await navigator.xr.requestSession("inline");
}
);
</script>