webxr: Implement reference space reset events (#33460)

* Initial interface implementation

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Add event handler

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update FakeXRDevice interface

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Implement reset event

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Downcast bounded spaces

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update expectations

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update webxr commit

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* fmt

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Adjust DomRoot usage

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* fmt

Signed-off-by: Daniel Adams <msub2official@gmail.com>

* Update manifest

Signed-off-by: Daniel Adams <msub2official@gmail.com>

---------

Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
Daniel Adams 2024-09-17 02:22:15 +00:00 committed by GitHub
parent b0cae28c83
commit f8e0fde044
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 210 additions and 90 deletions

View file

@ -1,7 +0,0 @@
[events_referenceSpace_reset_immersive.https.html]
[XRSession resetpose from a device properly fires off the right events for immersive sessions - webgl2]
expected: FAIL
[XRSession resetpose from a device properly fires off the right events for immersive sessions - webgl]
expected: FAIL

View file

@ -1,7 +0,0 @@
[events_referenceSpace_reset_inline.https.html]
[XRSession resetpose from a device properly fires off the right events for non-immersive sessions - webgl2]
expected: FAIL
[XRSession resetpose from a device properly fires off the right events for non-immersive sessions - webgl]
expected: FAIL

View file

@ -5,30 +5,15 @@
[XR interface: calling supportsSession(XRSessionMode) on navigator.xr with too few arguments must throw TypeError]
expected: FAIL
[XRReferenceSpaceEvent interface: attribute referenceSpace]
expected: FAIL
[XR interface: navigator.xr must inherit property "ondevicechange" with the proper type]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object]
expected: FAIL
[XRRay interface object length]
expected: FAIL
[XRRay interface: attribute matrix]
expected: FAIL
[XRReferenceSpaceEvent interface object length]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface object]
expected: FAIL
[XRReferenceSpaceEvent interface: attribute transform]
expected: FAIL
[XRRay interface: attribute direction]
expected: FAIL
@ -41,18 +26,9 @@
[XRRay interface: existence and properties of interface object]
expected: FAIL
[XRReferenceSpaceEvent interface object name]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[XRInputSource interface: attribute gamepad]
expected: FAIL
[XRReferenceSpace interface: attribute onreset]
expected: FAIL
[XRRay interface: attribute origin]
expected: FAIL
@ -62,9 +38,6 @@
[XRRay interface: existence and properties of interface prototype object]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[XR interface: operation requestSession(XRSessionMode, XRSessionInit)]
expected: FAIL

View file

@ -1,7 +0,0 @@
[events_referenceSpace_reset_immersive.https.html]
[XRSession resetpose from a device properly fires off the right events for immersive sessions - webgl2]
expected: FAIL
[XRSession resetpose from a device properly fires off the right events for immersive sessions - webgl]
expected: FAIL

View file

@ -1,7 +0,0 @@
[events_referenceSpace_reset_inline.https.html]
[XRSession resetpose from a device properly fires off the right events for non-immersive sessions - webgl2]
expected: FAIL
[XRSession resetpose from a device properly fires off the right events for non-immersive sessions - webgl]
expected: FAIL

View file

@ -5,9 +5,6 @@
[XRSession interface: calling requestReferenceSpace(XRReferenceSpaceType) on xrSession with too few arguments must throw TypeError]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[XRSession interface: xrSession must inherit property "visibilityState" with the proper type]
expected: FAIL
@ -20,15 +17,9 @@
[XRWebGLLayer interface: calling getNativeFramebufferScaleFactor(XRSession) on xrWebGLLayer with too few arguments must throw TypeError]
expected: FAIL
[XRReferenceSpaceEvent interface: attribute referenceSpace]
expected: FAIL
[XRWebGLLayer interface: xrWebGLLayer must inherit property "antialias" with the proper type]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object]
expected: FAIL
[XRSession interface: xrSession must inherit property "requestAnimationFrame(XRFrameRequestCallback)" with the proper type]
expected: FAIL
@ -62,12 +53,6 @@
[WebGLRenderingContext includes WebGLRenderingContextOverloads: member names are unique]
expected: FAIL
[XRReferenceSpaceEvent interface object name]
expected: FAIL
[XRReferenceSpaceEvent interface object length]
expected: FAIL
[XRRenderState must be primary interface of xrRenderState]
expected: FAIL
@ -86,9 +71,6 @@
[XRReferenceSpace must be primary interface of xrReferenceSpace]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface object]
expected: FAIL
[XRPermissionStatus interface: attribute granted]
expected: FAIL
@ -110,9 +92,6 @@
[idl_test setup]
expected: FAIL
[XRReferenceSpaceEvent interface: attribute transform]
expected: FAIL
[XRInputSourcesChangeEvent interface: xrInputSourcesChangeEvent must inherit property "added" with the proper type]
expected: FAIL
@ -176,9 +155,6 @@
[XRInputSourcesChangeEvent interface: xrInputSourcesChangeEvent must inherit property "removed" with the proper type]
expected: FAIL
[XRReferenceSpace interface: attribute onreset]
expected: FAIL
[XRSession interface: xrSession must inherit property "onsqueeze" with the proper type]
expected: FAIL
@ -194,9 +170,6 @@
[Stringification of xrWebGLLayer]
expected: FAIL
[XRReferenceSpaceEvent interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[Stringification of xrRenderState]
expected: FAIL

View file

@ -13495,7 +13495,7 @@
]
],
"interfaces.html": [
"dd0f564f708a2a0e8cf1ed571bd2bd45977fa469",
"086bc095b078efdcac4f51ef314f7851793dbb53",
[
null,
{}

View file

@ -291,6 +291,7 @@ test_interfaces([
"XRLayer",
"XRPose",
"XRReferenceSpace",
"XRReferenceSpaceEvent",
"XRRay",
"XRRenderState",
"XRRigidTransform",