| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> | 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <img id="target"> | 4 <img id="target" src="../../../animations/resources/green-100.png"> |
| 5 <script> | 5 <script> |
| 6 promise_test(function() { | 6 promise_test(function() { |
| 7 var animation = target.animate({transform: ['rotate(0deg)', 'rotate(180deg)']}
, 100000); | 7 var animation = target.animate({transform: ['rotate(0deg)', 'rotate(180deg)']}
, 100000); |
| 8 return animation.ready.then(() => { | 8 return animation.ready.then(() => { |
| 9 assert_true(internals.isCompositedAnimation(animation)); | 9 assert_true(internals.isCompositedAnimation(animation)); |
| 10 }); | 10 }); |
| 11 }, '<img> elements should run compositor animations'); | 11 }, '<img> elements should run compositor animations'); |
| 12 </script> | 12 </script> |
| OLD | NEW |