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

Side by Side Diff: LayoutTests/web-animations-api/timed-item-specified-setters.html

Issue 929273002: Use IDL union for Timing.duration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/AnimationNodeTiming.h » ('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 4
5 <body> 5 <body>
6 <div id='e'></div> 6 <div id='e'></div>
7 </body> 7 </body>
8 8
9 <script> 9 <script>
10 var element = document.getElementById('e'); 10 var element = document.getElementById('e');
(...skipping 14 matching lines...) Expand all
25 25
26 specifiedTiming.iterationStart = 2; 26 specifiedTiming.iterationStart = 2;
27 assert_equals(specifiedTiming.iterationStart, 2); 27 assert_equals(specifiedTiming.iterationStart, 2);
28 28
29 specifiedTiming.iterations = 10; 29 specifiedTiming.iterations = 10;
30 assert_equals(specifiedTiming.iterations, 10); 30 assert_equals(specifiedTiming.iterations, 10);
31 31
32 specifiedTiming.duration = 5; 32 specifiedTiming.duration = 5;
33 assert_equals(specifiedTiming.duration, 5); 33 assert_equals(specifiedTiming.duration, 5);
34 specifiedTiming.duration = '6'; 34 specifiedTiming.duration = '6';
35 assert_equals(specifiedTiming.duration, 6); 35 assert_equals(specifiedTiming.duration, 'auto');
36 specifiedTiming.duration = 'auto'; 36 specifiedTiming.duration = 'auto';
37 assert_equals(specifiedTiming.duration, 'auto'); 37 assert_equals(specifiedTiming.duration, 'auto');
38 specifiedTiming.duration = 'a'; 38 specifiedTiming.duration = 'a';
39 assert_equals(specifiedTiming.duration, 'auto'); 39 assert_equals(specifiedTiming.duration, 'auto');
40 specifiedTiming.duration = '-1'; 40 specifiedTiming.duration = '-1';
41 assert_equals(specifiedTiming.duration, 'auto'); 41 assert_equals(specifiedTiming.duration, 'auto');
42 42
43 specifiedTiming.playbackRate = 2; 43 specifiedTiming.playbackRate = 2;
44 assert_equals(specifiedTiming.playbackRate, 2); 44 assert_equals(specifiedTiming.playbackRate, 2);
45 45
46 specifiedTiming.direction = 'reverse'; 46 specifiedTiming.direction = 'reverse';
47 assert_equals(specifiedTiming.direction, 'reverse'); 47 assert_equals(specifiedTiming.direction, 'reverse');
48 48
49 specifiedTiming.easing = "step-start"; 49 specifiedTiming.easing = "step-start";
50 assert_equals(specifiedTiming.easing, 'step-start'); 50 assert_equals(specifiedTiming.easing, 'step-start');
51 }, 'TimedItem.timing should have a setter for each member of the underlying Timi ng object.'); 51 }, 'TimedItem.timing should have a setter for each member of the underlying Timi ng object.');
52 </script> 52 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationNodeTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698