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