mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a'
This commit is contained in:
parent
470a50ab60
commit
6337336fab
1043 changed files with 19705 additions and 6973 deletions
|
@ -7,12 +7,18 @@
|
|||
<div id="log"></div>
|
||||
<dialog></dialog>
|
||||
<script>
|
||||
async_test(t => {
|
||||
var dialog = document.querySelector("dialog");
|
||||
assert_true(dialog instanceof HTMLDialogElement);
|
||||
document.onfullscreenchange = t.unreached_func("fullscreenchange event");
|
||||
document.onfullscreenerror = t.step_func_done();
|
||||
|
||||
test_driver.bless("Initiate fullscreen", () => dialog.requestFullscreen().catch(() => {}));
|
||||
});
|
||||
promise_test(async (t) => {
|
||||
const dialog = document.querySelector("dialog");
|
||||
assert_true(dialog instanceof HTMLDialogElement);
|
||||
document.onfullscreenchange = t.unreached_func(
|
||||
"fullscreenchange event"
|
||||
);
|
||||
const errorEventPromise = new Promise(
|
||||
(resolve) => (document.onfullscreenerror = resolve)
|
||||
);
|
||||
Promise.all([
|
||||
promise_rejects_js(t, TypeError, dialog.requestFullscreen()),
|
||||
errorEventPromise,
|
||||
]);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue