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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/getComputedTiming.html

Issue 2408083002: Revert of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: Created 4 years, 2 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 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>KeyframeEffectReadOnly getComputedTiming() tests</title> 3 <title>KeyframeEffectReadOnly getComputedTiming() tests</title>
4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffect readonly-getcomputedtiming"> 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffect readonly-getcomputedtiming">
5 <link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com"> 5 <link rel="author" title="Boris Chiou" href="mailto:boris.chiou@gmail.com">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <script src="../../testcommon.js"></script> 8 <script src="../../testcommon.js"></script>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 expected: Infinity }, 182 expected: Infinity },
183 { desc: "an infinite duration and negative delay", 183 { desc: "an infinite duration and negative delay",
184 input: { duration: Infinity, iterations: 10, delay: -1000 }, 184 input: { duration: Infinity, iterations: 10, delay: -1000 },
185 expected: Infinity }, 185 expected: Infinity },
186 { desc: "an non-zero duration and negative delay", 186 { desc: "an non-zero duration and negative delay",
187 input: { duration: 1000, iterations: 2, delay: -1000 }, 187 input: { duration: 1000, iterations: 2, delay: -1000 },
188 expected: 1000 }, 188 expected: 1000 },
189 { desc: "an non-zero duration and negative delay greater than active " + 189 { desc: "an non-zero duration and negative delay greater than active " +
190 "duration", 190 "duration",
191 input: { duration: 1000, iterations: 2, delay: -3000 }, 191 input: { duration: 1000, iterations: 2, delay: -3000 },
192 expected: 0 }, 192 expected: -1000 },
193 { desc: "a zero duration and negative delay", 193 { desc: "a zero duration and negative delay",
194 input: { duration: 0, iterations: 2, delay: -1000 }, 194 input: { duration: 0, iterations: 2, delay: -1000 },
195 expected: 0 } 195 expected: -1000 }
196 ]; 196 ];
197 197
198 gEndTimeTests.forEach(function(stest) { 198 gEndTimeTests.forEach(function(stest) {
199 test(function(t) { 199 test(function(t) {
200 var effect = new KeyframeEffectReadOnly(target, 200 var effect = new KeyframeEffectReadOnly(target,
201 { left: ["10px", "20px"] }, 201 { left: ["10px", "20px"] },
202 stest.input); 202 stest.input);
203 203
204 assert_equals(effect.getComputedTiming().endTime, 204 assert_equals(effect.getComputedTiming().endTime,
205 stest.expected); 205 stest.expected);
206 206
207 }, "getComputedTiming().endTime for " + stest.desc); 207 }, "getComputedTiming().endTime for " + stest.desc);
208 }); 208 });
209 209
210 done(); 210 done();
211 </script> 211 </script>
212 </body> 212 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698