Auto merge of #27487 - asajeffrey:webxr-update-webidl, r=Manishearth,jdm

WebXR Layers update WebIDL

<!-- Please describe your changes on the following line: -->

Updates the WebXR Layers WebIDL. Implements the "update the pending layers state" algorithm from the layer spec.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] There are updated tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2020-08-04 09:55:05 -04:00 committed by GitHub
commit 286793c2d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 289 additions and 363 deletions

View file

@ -329,30 +329,6 @@
[Stringification of xrInputSourceArray]
expected: FAIL
[XRLayer interface: existence and properties of interface prototype object]
expected: FAIL
[XRLayer interface: existence and properties of interface object]
expected: FAIL
[XRLayer interface object name]
expected: FAIL
[XRLayer interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[XRWebGLLayer interface: existence and properties of interface object]
expected: FAIL
[XRWebGLLayer interface: existence and properties of interface prototype object]
expected: FAIL
[XRLayer interface object length]
expected: FAIL
[XRLayer interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[XRSession interface: xrSession must inherit property "cancelAnimationFrame(unsigned long)" with the proper type]
expected: FAIL

View file

@ -13959,7 +13959,7 @@
]
],
"interfaces.html": [
"d988b7939f83cef16a51a4ae5502ed029f31df99",
"b58b16ca333f9e00afade02c2ac60689ee7eef3a",
[
null,
{}
@ -14719,7 +14719,7 @@
]
],
"layers.html": [
"49821d7661f92bc9cf22232d3fcb391c2cdc7295",
"f64cc1f30f469351b83cd1c12a0584b1db5317a7",
[
null,
{}

View file

@ -276,6 +276,7 @@ test_interfaces([
"XRInputSource",
"XRInputSourceArray",
"XRInputSourceEvent",
"XRLayer",
"XRPose",
"XRReferenceSpace",
"XRRay",

View file

@ -43,8 +43,8 @@
});
assert_equals(session.renderState.baseLayer, null, "Setting layers should unset baseLayer");
assert_throws_dom(
"InvalidStateError",
assert_throws_js(
TypeError,
() => { session.updateRenderState({ layers: [layer], baseLayer: layer }); },
"Setting both baseLayer and layers should fail"
);