1
0
Fork 0
firefox/testing/web-platform/tests/webxr/hit-test/idlharness.https.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
832 B
HTML

<!doctype html>
<title>WebXR hit-test IDL tests</title>
<link rel="help" href="https://immersive-web.github.io/hit-test/">
<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>