Update web-platform-tests to revision b'9ce4a6482a088da3d74f895d8ad15c5ce0c25d28'

This commit is contained in:
WPT Sync Bot 2022-12-17 01:16:22 +00:00
parent dca3b2f0c1
commit 02d490892d
162 changed files with 3675 additions and 951 deletions

View file

@ -35,17 +35,20 @@
margin-bottom: 0px;
}
</style>
<script src="/web-animations/testcommon.js"></script>
<script>
window.addEventListener("load", function() {
window.addEventListener("load", async function() {
const scroller = document.scrollingElement;
// Move the scroller to the halfway point.
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = 0.5 * maxScroll;
window.requestAnimationFrame(() => {
window.parent.postMessage("success", "*");
});
await waitForCompositorReady();
await waitForNextFrame();
await waitForNextFrame();
window.parent.postMessage("success", "*");
});
</script>
<body>
@ -54,11 +57,17 @@
</body>
</html>
'></iframe>
<script src="/web-animations/testcommon.js"></script>
<script>
async function finishTest() {
await waitForCompositorReady();
await waitForNextFrame();
await waitForNextFrame();
document.documentElement.classList.remove("reftest-wait");
}
window.addEventListener("message", event => {
if (event.data == "success") {
document.documentElement.classList.remove("reftest-wait");
finishTest();
}
}, false);
</script>