Update web-platform-tests to revision b'a877a8f14afc4b3a1d438cd5a9bfd7cd029111b7'

This commit is contained in:
WPT Sync Bot 2023-04-12 01:20:55 +00:00
parent 15de7b99b7
commit b8f194326b
189 changed files with 3001 additions and 832 deletions

View file

@ -0,0 +1,32 @@
<!doctype html>
<html class="test-wait">
<iframe id="frame" srcdoc=""></iframe>
<script id="worker1" type="javascript/worker">
self.onmessage = async function(e) {
let a = new MessageEvent('message')
for (let e = 0; e < 255; e++) {
new Uint8ClampedArray(2048).fill(e)
}
try { self.dispatchEvent(a) } catch (e) {}
let x = new FontFace('foo', 'x')
}
</script>
<script>
function tick() {
return new Promise(r => {
requestAnimationFrame(() => requestAnimationFrame(r));
});
}
onload = async () => {
let win = document.querySelector("#frame").contentWindow;
const blob = new win.Blob([document.querySelector('#worker1').textContent], { type: "text/javascript" })
let worker = new win.Worker(win.URL.createObjectURL(blob))
worker.postMessage([], [])
await tick();
await tick();
win.location.reload(true)
await tick();
document.documentElement.className = "";
};
</script>