Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -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>

View file

@ -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');

View file

@ -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');