Skip to content

Commit

Permalink
Check active/previous interval when rescheduling after interval update
Browse files Browse the repository at this point in the history
When nudging the presentation time back in InstanceListChanged(), the
previous interval could be the active one, so we need to consider it
when updating the active state and when compute the next interval time.

Bug: 1030309
Change-Id: I5d20878f45dd4e26c5966c816b9ff5c82e4c40b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1948938
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#721129}
  • Loading branch information
Fredrik Söderquist authored and chromium-wpt-export-bot committed Dec 3, 2019
1 parent 9e9653f commit 033bf24
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions svg/animations/cyclic-syncbase-events.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<title>Cyclic syncbase dependency with syncbase trigger - event dispatching</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<svg>
<rect width="100" height="100" fill="blue">
<animate attributeName="fill" from="yellow" to="blue" id="a"
begin="c.end; b.begin" dur="10ms"/>
</rect>
<rect width="100" height="100" x="100" fill="blue">
<animate attributeName="fill" from="yellow" to="blue" id="b"
begin="c.end; a.begin" dur="10ms"/>
</rect>
<rect width="100" height="100" x="200" fill="blue">
<animate attributeName="fill" from="yellow" to="blue" id="c"
begin="0; 15ms" dur="10ms"/>
</rect>
</svg>
<script>
promise_test(function(t) {
// Wait for two beginEvent/endEvent pairs on all the timed elements.
let promises = ['a', 'b', 'c'].map(function(id) {
return new EventWatcher(t, document.getElementById(id),
['beginEvent', 'endEvent'])
.wait_for(['beginEvent', 'endEvent',
'beginEvent', 'endEvent']);
});
return Promise.all(promises);
});
</script>

0 comments on commit 033bf24

Please sign in to comment.