Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/LayoutTests/animations/web-animations/element-animate-iterable-keyframes.html

Issue 2976613002: Move Web Animations API tests to subdirectory (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698