Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a'

This commit is contained in:
WPT Sync Bot 2022-12-11 01:16:53 +00:00
parent 470a50ab60
commit 6337336fab
1043 changed files with 19705 additions and 6973 deletions

View file

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