| OLD | NEW |
| 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> |
| OLD | NEW |