Skip to content

Commit

Permalink
Bug 1628931 [wpt PR 22836] - Add interfaces/hit-test.idl and test, a=…
Browse files Browse the repository at this point in the history
…testonly

Automatic update from web-platform-tests
Add interfaces/hit-test.idl and test (#22836)

Due to the difficulty in testing webxr until test-only APIs are
supported in WPT (see
web-platform-tests/wpt#16455 (comment)),
the added test only tests the XRSession interface additions for now.

Closes web-platform-tests/wpt#22155
--

wpt-commits: 8a9e492c5bbfafeeb074902ab39910348a20776a
wpt-pr: 22836

UltraBlame original commit: 98cd0a5fb4a5952175d709aee6a2593c33f35ab9
  • Loading branch information
marco-c committed May 3, 2020
1 parent da03ec7 commit 2b08269
Show file tree
Hide file tree
Showing 2 changed files with 512 additions and 0 deletions.
220 changes: 220 additions & 0 deletions testing/web-platform/tests/hit-test/idlharness.https.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
<
!
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
(
[
'
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
>
Loading

0 comments on commit 2b08269

Please sign in to comment.