Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/LayoutTests/animations/timing/delay-timer-cancel-bug.html

Issue 2979503002: Move animation timing tests to subdirectory (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <script src="../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
3 <div id="target"></div> 3 <div id="target"></div>
4 <script> 4 <script>
5 var asyncHandle = async_test('Delayed animations are unaffected by on demand tim eline updates.'); 5 var asyncHandle = async_test('Delayed animations are unaffected by on demand tim eline updates.');
6 target.animate(null, {delay: 100}).onfinish = () => asyncHandle.done(); 6 target.animate(null, {delay: 100}).onfinish = () => asyncHandle.done();
7 requestAnimationFrame(() => { 7 requestAnimationFrame(() => {
8 requestAnimationFrame(() => { 8 requestAnimationFrame(() => {
9 setTimeout(() => { 9 setTimeout(() => {
10 // Force layout tree update which forces an on demand timing update. 10 // Force layout tree update which forces an on demand timing update.
11 target.offsetTop; 11 target.offsetTop;
12 }, 0); 12 }, 0);
13 }); 13 });
14 }); 14 });
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698