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

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

Issue 2142733002: Modified iterable keyframes test to use KeyframeEffect constructor and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test expectations now that this test fails Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/element-animate-iterable-keyframes.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 assertAnimationEffect({ 119 assertAnimationEffect({
120 keyframes: createIterable([ 120 keyframes: createIterable([
121 {done: false, value: {left: ['100px', '200px']}}, 121 {done: false, value: {left: ['100px', '200px']}},
122 {done: true}, 122 {done: true},
123 ]), 123 ]),
124 expect: [], 124 expect: [],
125 }); 125 });
126 }); 126 });
127 }, 'Custom iterator with value list in keyframe should throw.'); 127 }, 'Custom iterator with value list in keyframe should throw.');
128 </script> 128 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/element-animate-iterable-keyframes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698