Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!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>