| 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 <script> | 4 <script> |
| 5 'use strict'; | 5 'use strict'; |
| 6 // From UseCounter.h | 6 // From UseCounter.h |
| 7 var WebAnimationsEasingAsFunctionLinear = 1295; | 7 var WebAnimationsEasingAsFunctionLinear = 1295; |
| 8 var WebAnimationsEasingAsFunctionOther = 1296; | 8 var WebAnimationsEasingAsFunctionOther = 1296; |
| 9 | 9 |
| 10 test(() => { | 10 test(() => { |
| 11 document.documentElement.animate([], { easing: 'function(x, y){return 0.3}' })
; | 11 assert_throws( |
| 12 {name: 'TypeError'}, |
| 13 function() { document.documentElement.animate([], { easing: 'function(x, y
){return 0.3}' }) }); |
| 12 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLin
ear)); | 14 assert_false(internals.isUseCounted(document, WebAnimationsEasingAsFunctionLin
ear)); |
| 13 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOthe
r)); | 15 assert_true(internals.isUseCounted(document, WebAnimationsEasingAsFunctionOthe
r)); |
| 14 }, 'Arbitrary functions for easing are counted in WebAnimationsEasingAsFunctionO
ther.'); | 16 }, 'Arbitrary functions for easing are counted in WebAnimationsEasingAsFunctionO
ther.'); |
| 15 </script> | 17 </script> |
| OLD | NEW |