Auto merge of #27499 - asajeffrey:webxr-xrmedia-dummy, r=Manishearth

Add dummy implementations of missing XR layer types

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

Add dummy implementations of the missing layer types, and the functions that create them.

---
<!-- 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 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 19:08:41 -04:00 committed by GitHub
commit f8c8307f94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 367 additions and 89 deletions

View file

@ -14719,7 +14719,7 @@
]
],
"layers.html": [
"f64cc1f30f469351b83cd1c12a0584b1db5317a7",
"b6749f208a8f3c5ae78fbe72cfa7364829abb127",
[
null,
{}

View file

@ -48,6 +48,27 @@
() => { session.updateRenderState({ layers: [layer], baseLayer: layer }); },
"Setting both baseLayer and layers should fail"
);
assert_throws_dom(
"NotSupportedError",
() => { glLayerFactory.createQuadLayer("texture"); },
"Creating a quad layer without the layers feature should fail"
);
assert_throws_dom(
"NotSupportedError",
() => { glLayerFactory.createCylinderLayer("texture"); },
"Creating a cylinder layer without the layers feature should fail"
);
assert_throws_dom(
"NotSupportedError",
() => { glLayerFactory.createEquirectLayer("texture"); },
"Creating a equirect layer without the layers feature should fail"
);
assert_throws_dom(
"NotSupportedError",
() => { glLayerFactory.createCubeLayer(); },
"Creating a cube layer without the layers feature should fail"
);
});
</script>
</body>