mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'9ce4a6482a088da3d74f895d8ad15c5ce0c25d28'
This commit is contained in:
parent
dca3b2f0c1
commit
02d490892d
162 changed files with 3675 additions and 951 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue