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 <body></body> | 4 <body></body> |
5 <script> | 5 <script> |
6 function assertAnimationEffect({keyframes, expect}) { | 6 function assertAnimationEffect({keyframes, expect}) { |
7 var target = document.createElement('target'); | 7 var target = document.createElement('target'); |
8 document.body.appendChild(target); | 8 document.body.appendChild(target); |
9 var animation = target.animate(keyframes, {duration: 1, fill: 'forwards'}); | 9 var animation = target.animate(keyframes, {duration: 1, fill: 'forwards'}); |
10 animation.pause(); | 10 animation.pause(); |
11 for (var {at, is} of expect) { | 11 for (var {at, is} of expect) { |
12 animation.currentTime = at; | 12 animation.currentTime = at; |
13 for (var property in is) | 13 for (var property in is) |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 left: createIterable([ | 153 left: createIterable([ |
154 {done: false, value: {toString: null}}, | 154 {done: false, value: {toString: null}}, |
155 {done: true}, | 155 {done: true}, |
156 ]), | 156 ]), |
157 }, | 157 }, |
158 expect: [], | 158 expect: [], |
159 }); | 159 }); |
160 }); | 160 }); |
161 }, 'Custom iterator in property indexed keyframes with null toString method shou
ld throw.'); | 161 }, 'Custom iterator in property indexed keyframes with null toString method shou
ld throw.'); |
162 </script> | 162 </script> |
OLD | NEW |