Update web-platform-tests to revision b'62c17eac9f99db2ea4e213328c9c6122136694cc'

This commit is contained in:
WPT Sync Bot 2023-03-22 01:34:08 +00:00
parent 886032fc74
commit 90b96becef
317 changed files with 4745 additions and 2272 deletions

View file

@ -3,6 +3,7 @@
<link rel=help href="https://github.com/w3c/csswg-drafts/issues/4441">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/css-animations/support/testcommon.js"></script>
<div id=target1 class=target>hello</div>
<div id=target2 class=target>hello</div>
@ -32,9 +33,9 @@ promise_test(async () => {
target1.addEventListener('transitionstart', () => {
transitionstartFired = true;
});
await new Promise(resolve => requestAnimationFrame(resolve));
await waitForAnimationFrames(2);
target1.classList.add('animated');
await new Promise(resolve => requestAnimationFrame(resolve));
await waitForAnimationFrames(1);
assert_true(transitionstartFired);
}, 'all with an explicit discrete property should animate.');
@ -43,9 +44,9 @@ promise_test(async () => {
target2.addEventListener('transitionstart', () => {
transitionstartFired = true;
});
await new Promise(resolve => requestAnimationFrame(resolve));
await waitForAnimationFrames(2);
target2.classList.add('animated');
await new Promise(resolve => requestAnimationFrame(resolve));
await waitForAnimationFrames(1);
assert_false(transitionstartFired);
}, 'all without an explicit discrete property should not animate.');
</script>