| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>iterations tests</title> | 3 <title>iterations tests</title> |
| 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffect
timing-iterations"> | 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffect
timing-iterations"> |
| 5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="../../../../resources/testharness.js"></script> |
| 6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="../../../../resources/testharnessreport.js"></script> |
| 7 <script src="../testcommon.js"></script> | 7 <script src="../testcommon.js"></script> |
| 8 <link rel="stylesheet" href="../../../../resources/testharness.css"> | 8 <link rel="stylesheet" href="../../../../resources/testharness.css"> |
| 9 <body> | 9 <body> |
| 10 <div id="log"></div> | 10 <div id="log"></div> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 test(function(t) { | 48 test(function(t) { |
| 49 var div = createDiv(t); | 49 var div = createDiv(t); |
| 50 var anim = div.animate({ opacity: [ 0, 1 ] }, 2000); | 50 var anim = div.animate({ opacity: [ 0, 1 ] }, 2000); |
| 51 assert_throws({ name: 'TypeError' }, function() { | 51 assert_throws({ name: 'TypeError' }, function() { |
| 52 anim.effect.timing.iterations = NaN; | 52 anim.effect.timing.iterations = NaN; |
| 53 }); | 53 }); |
| 54 }, 'set NaN iterations'); | 54 }, 'set NaN iterations'); |
| 55 | 55 |
| 56 </script> | 56 </script> |
| 57 </body> | 57 </body> |
| OLD | NEW |