summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webxr/hit-test/idlharness.https.html
blob: f61959b9edab6c6d561bbff90f2dc0d2a66e91b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!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>