| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Things</title> | 2 <title>Things</title> |
| 3 <link rel="https://w3c.github.io/web-animations/#the-computedtimingproperties-di
ctionary"> | 3 <link rel="https://w3c.github.io/web-animations/#the-computedtimingproperties-di
ctionary"> |
| 4 <script src="../resources/testharness.js"></script> | 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script src="../imported/wpt/web-animations/testcommon.js"></script> | 6 <script src="../external/wpt/web-animations/testcommon.js"></script> |
| 7 | 7 |
| 8 <body> | 8 <body> |
| 9 <div id='e'></div> | 9 <div id='e'></div> |
| 10 </body> | 10 </body> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 var element = document.getElementById('e'); | 13 var element = document.getElementById('e'); |
| 14 var keyframes = [{opacity: '1', offset: 0}, {opacity: '0', offset: 1}]; | 14 var keyframes = [{opacity: '1', offset: 0}, {opacity: '0', offset: 1}]; |
| 15 | 15 |
| 16 test(function() { | 16 test(function() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 test(function() { | 67 test(function() { |
| 68 var timing = new KeyframeEffect(element, keyframes).timing; | 68 var timing = new KeyframeEffect(element, keyframes).timing; |
| 69 for (var attr of ['delay', 'endDelay', 'iterationStart']) { | 69 for (var attr of ['delay', 'endDelay', 'iterationStart']) { |
| 70 assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr); | 70 assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr); |
| 71 assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr); | 71 assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr); |
| 72 } | 72 } |
| 73 }, 'Restricted double attributes on the AnimationEffectTiming interface throws f
or non-finite values.'); | 73 }, 'Restricted double attributes on the AnimationEffectTiming interface throws f
or non-finite values.'); |
| 74 | 74 |
| 75 </script> | 75 </script> |
| OLD | NEW |