OLD | NEW |
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 Loading... |
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> |
OLD | NEW |