Bug 191187
Summary: | [web-animations] web-animations/timing-model/timelines/update-and-send-events.html is a unique failure | ||
---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> |
Component: | Animations | Assignee: | Antoine Quint <graouts> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | dino, graouts, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar, WebExposed, WPTImpact |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Antoine Quint
One of the subtests in imported/w3c/web-platform-tests/web-animations/timing-model/timelines/update-and-send-events.html is skipped because it fails with a flaky output:
promise_test(async t => {
const div = createDiv(t);
getComputedStyle(div).marginLeft;
div.style = 'transition: margin-left 100s; margin-left: 100px;';
const anim = div.getAnimations()[0];
let receivedEvents = [];
anim.oncancel = event => receivedEvents.push(event);
const eventWatcher = new EventWatcher(t, div, 'transitionstart');
await eventWatcher.wait_for('transitionstart');
const timeInEventCallback = document.timeline.currentTime;
// Calling cancel() queues a cancel event
anim.cancel();
await waitForAnimationFrames(1);
assert_times_equal(timeInEventCallback, document.timeline.currentTime,
'A rAF callback should happen in the same frame');
assert_array_equals(receivedEvents, [],
'The queued cancel event shouldn\'t be dispatched in the same frame');
await waitForAnimationFrames(1);
assert_array_equals(receivedEvents.map(event => event.type), ['cancel'],
'The cancel event should be dispatched in a later frame');
}, 'Queues a cancel event in transitionstart event callback');
We need to stop skipping this test
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Antoine Quint
We no longer skip this test, however it is a unique failure, so retitling this bug to track this.
Antoine Quint
The two remaining failures are related to event sorting.
Antoine Quint
Pull request: https://github.com/WebKit/WebKit/pull/6555
EWS
Committed 256771@main (4623d94c854c): <https://commits.webkit.org/256771@main>
Reviewed commits have been landed. Closing PR #6555 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/102451821>