mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +00:00
Bug 1264107 - Use shorter duration to avoid possibilities of overflow on TimeStamp calculations. r=birtles
If there is a possibility that long duration property causes overflow on TimeStamp calculations, we should use shorter duration in our tests. MozReview-Commit-ID: HJThoX80W4Y --HG-- extra : rebase_source : 8986afa9a58d832e15194b8ea9533af380a127a4
This commit is contained in:
parent
c9de3d6a41
commit
3dfafb3211
@ -1540,12 +1540,13 @@ addAsyncAnimTest("tree_ordering", { observe: div, subtree: true }, function*() {
|
||||
yield await_frame();
|
||||
assert_records([], "records after assigning same value");
|
||||
|
||||
anim.currentTime = 500 * MS_PER_SEC;
|
||||
anim.currentTime = anim.effect.timing.duration * 2;
|
||||
anim.finish();
|
||||
yield await_frame();
|
||||
assert_records([{ added: [], changed: [], removed: [anim] }],
|
||||
"records after animation end");
|
||||
|
||||
anim.effect.timing.duration = 1000 * MS_PER_SEC;
|
||||
anim.effect.timing.duration = anim.effect.timing.duration * 3;
|
||||
yield await_frame();
|
||||
assert_records([{ added: [anim], changed: [], removed: [] }],
|
||||
"records after animation restarted");
|
||||
|
Loading…
Reference in New Issue
Block a user