Skip to content

Commit 876a0ec

Browse files
vmpstrlutien
authored andcommitted
Bug 1966211 [wpt PR 52507] - VT interop: Speculative interop fix for a timeout on wpt.fyi,
Automatic update from web-platform-tests VT interop: Speculative interop fix for a timeout on wpt.fyi This patch ensures that we wait for the compositor to be ready before executing the rest of the test. [email protected] Bug: 394108982 Change-Id: If8a1a5d1fc9823708ce364a095af419187b29d1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6526067 Reviewed-by: Kevin Ellis <[email protected]> Commit-Queue: Vladimir Levin <[email protected]> Cr-Commit-Position: refs/heads/main@{#1459637} -- wpt-commits: d6d1aff6b0b1c4298175238eb0f869c18bcf3ba8 wpt-pr: 52507 Differential Revision: https://phabricator.services.mozilla.com/D250155
1 parent 7152883 commit 876a0ec

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

testing/web-platform/tests/css/css-view-transitions/web-animation-pseudo-incorrect-name.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<title>View transitions: creating animation for non-existant view transition pseudo</title>
44
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
55
<link rel="author" href="mailto:[email protected]">
6+
<script src="/dom/events/scrolling/scroll_support.js"></script>
67

78
<script src="/resources/testharness.js"></script>
89
<script src="/resources/testharnessreport.js"></script>
@@ -22,18 +23,16 @@
2223
<script>
2324
promise_test(async t => {
2425
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
25-
return new Promise(async (resolve, reject) => {
26+
await waitForCompositorReady();
27+
return new Promise(async (resolve) => {
2628
let transition = document.startViewTransition();
2729
await transition.ready;
2830

2931
let animation = document.documentElement.animate(
3032
{ transform: ['translate(100px)', 'translate(200px)'] },
3133
{duration: 100, pseudoElement: '::view-transition-group(bad-target)', fill: "forwards"});
32-
33-
requestAnimationFrame(() => {
34-
animation.currentTime = 200;
35-
requestAnimationFrame(() => requestAnimationFrame(resolve));
36-
});
34+
assert_true(!!animation, "animation is created");
35+
resolve();
3736
});
3837
}, "animation created with incorrect name");
3938
</script>

0 commit comments

Comments
 (0)