mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -5,11 +5,9 @@
|
|||
'use strict';
|
||||
|
||||
promise_test((t) => {
|
||||
const p1 = navigator.keyboard.lock(['a', 'b']);
|
||||
const p2 = navigator.keyboard.lock(['c', 'd']);
|
||||
return promise_rejects(t, null, p2,
|
||||
'keyboard.lock() should only be ' +
|
||||
'executed if another request has finished.');
|
||||
const p1 = navigator.keyboard.lock(["KeyA", "KeyB"]);
|
||||
const p2 = navigator.keyboard.lock(["KeyC", "KeyD"]);
|
||||
return Promise.all([promise_rejects(t, "AbortError", p1), p2]);
|
||||
}, '[Keyboard Lock] keyboard.lock twice in parallel');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
'use strict';
|
||||
|
||||
promise_test(() => {
|
||||
return navigator.keyboard.lock(['a', 'b'])
|
||||
return navigator.keyboard.lock(["KeyA", "KeyB"])
|
||||
.then(() => {
|
||||
return navigator.keyboard.lock(['c', 'd']);
|
||||
return navigator.keyboard.lock(["KeyC", "KeyD"]);
|
||||
});
|
||||
}, '[Keyboard Lock] keyboard.lock called twice sequentially');
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
'use strict';
|
||||
|
||||
promise_test(() => {
|
||||
const p = navigator.keyboard.lock(['a', 'b']);
|
||||
const p = navigator.keyboard.lock(["KeyA", "KeyB"]);
|
||||
assert_true(p instanceof Promise);
|
||||
return p;
|
||||
}, '[Keyboard Lock] keyboard.lock');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue