mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
dom: Generate iterator symbol for interfaces with indexed getters.
This commit is contained in:
parent
aa80f91399
commit
63528f6fdf
5 changed files with 65 additions and 5 deletions
|
@ -528290,6 +528290,13 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"xrInputSourceArray_iterable.html": [
|
||||
"de784d5d1a60fc15c0bea92e65a8a2a3ef0acf97",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"xrInputSource_add_remove.https.html": [
|
||||
"7764017910d2e5ada78febe954e9543aca89226b",
|
||||
[
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
[XR interface: attribute ondevicechange]
|
||||
expected: FAIL
|
||||
|
||||
[XRInputSourceArray interface: iterable<XRInputSource>]
|
||||
expected: FAIL
|
||||
|
||||
[XR interface: calling supportsSession(XRSessionMode) on navigator.xr with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/webxr_util.js"></script>
|
||||
<script src="resources/webxr_test_constants.js"></script>
|
||||
<canvas id="webgl-canvas"></canvas>
|
||||
<script>
|
||||
let testName = "XRInputSourceArray is iterable";
|
||||
let testFunction = function(session, fakeDeviceController, t) {
|
||||
return new Promise((resolve) => {
|
||||
let input_source = fakeDeviceController.simulateInputSourceConnection({
|
||||
handedness: "right",
|
||||
targetRayMode: "tracked-pointer",
|
||||
pointerOrigin: VALID_POINTER_TRANSFORM,
|
||||
gripOrigin: VALID_GRIP_TRANSFORM,
|
||||
profiles: ["foo", "bar"]
|
||||
});
|
||||
|
||||
requestSkipAnimationFrame(session, (time, xrFrame) => {
|
||||
let sources = [];
|
||||
t.step(() => {
|
||||
for (const source of session.inputSources) {
|
||||
sources.push(source);
|
||||
}
|
||||
assert_equals(sources.length, 1);
|
||||
});
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
xr_session_promise_test(
|
||||
testName, testFunction, TRACKED_IMMERSIVE_DEVICE, 'immersive-vr');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue