| 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 <div id="target"></div> | 4 <div id="target"></div> |
| 5 <script> | 5 <script> |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 test(() => { | 8 test(() => { |
| 9 var WebAnimationHyphenatedProperty = 1243; // From UseCounter.h | 9 var WebAnimationHyphenatedProperty = 1243; // From UseCounter.h |
| 10 var target = document.getElementById('target'); | 10 var target = document.getElementById('target'); |
| 11 var timing = {fill: 'both'}; | 11 var timing = {fill: 'both'}; |
| 12 target.animate([{'borderRadius': "1em"}], timing); | 12 target.animate([{'borderRadius': "1em"}], timing); |
| 13 assert_false(internals.isUseCounted(document, WebAnimationHyphenatedProperty
)); | 13 assert_false(internals.isUseCounted(document, WebAnimationHyphenatedProperty
)); |
| 14 target.animate([{'border-radius': "1em"}], timing); | 14 target.animate([{'border-radius': "1em"}], timing); |
| 15 assert_true(internals.isUseCounted(document, WebAnimationHyphenatedProperty)
); | 15 assert_true(internals.isUseCounted(document, WebAnimationHyphenatedProperty)
); |
| 16 }, 'Calling element.animate() with hyphenated property is use counted.'); | 16 }, 'Calling element.animate() with hyphenated property is use counted.'); |
| 17 </script> | 17 </script> |
| OLD | NEW |