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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/effect-of-keyframeeffect-on-getComputedTiming.html

Issue 2226623002: Remove some obsolete entries in Web Animations IDL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update global-interface-listing-expected Created 4 years, 4 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/webexposed/global-interface-listing-expected.txt » ('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 <title>Things</title> 2 <title>Things</title>
3 <link rel="https://w3c.github.io/web-animations/#the-computedtimingproperties-di ctionary"> 3 <link rel="https://w3c.github.io/web-animations/#the-computedtimingproperties-di ctionary">
4 <script src="../resources/testharness.js"></script> 4 <script src="../resources/testharness.js"></script>
5 <script src="../resources/testharnessreport.js"></script> 5 <script src="../resources/testharnessreport.js"></script>
6 <script src="../imported/wpt/web-animations/testcommon.js"></script> 6 <script src="../imported/wpt/web-animations/testcommon.js"></script>
7 7
8 <body> 8 <body>
9 <div id='e'></div> 9 <div id='e'></div>
10 </body> 10 </body>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 assert_times_equal(keyframeEffect.getComputedTiming().activeDuration, 12); 59 assert_times_equal(keyframeEffect.getComputedTiming().activeDuration, 12);
60 }, 'ComputedTimingProperties startTime, endTime, duration, activeDuration are se nsible for keyframeEffects with delays and iterations'); 60 }, 'ComputedTimingProperties startTime, endTime, duration, activeDuration are se nsible for keyframeEffects with delays and iterations');
61 61
62 test(function() { 62 test(function() {
63 var keyframeEffect = new KeyframeEffect(element, keyframes, {delay: 1}); 63 var keyframeEffect = new KeyframeEffect(element, keyframes, {delay: 1});
64 assert_times_equal(keyframeEffect.getComputedTiming().duration, 0); 64 assert_times_equal(keyframeEffect.getComputedTiming().duration, 0);
65 }, 'ComputedTimingProperties duration is calculated when no duration is specifie d'); 65 }, 'ComputedTimingProperties duration is calculated when no duration is specifie d');
66 66
67 test(function() { 67 test(function() {
68 var timing = new KeyframeEffect(element, keyframes).timing; 68 var timing = new KeyframeEffect(element, keyframes).timing;
69 for (var attr of ['delay', 'endDelay', 'iterationStart', 'playbackRate']) { 69 for (var attr of ['delay', 'endDelay', 'iterationStart']) {
70 assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr); 70 assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr);
71 assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr); 71 assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr);
72 } 72 }
73 }, 'Restricted double attributes on the AnimationEffectTiming interface throws f or non-finite values.'); 73 }, 'Restricted double attributes on the AnimationEffectTiming interface throws f or non-finite values.');
74 74
75 </script> 75 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698