OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .anim { | 5 .anim { |
6 position: absolute; | 6 position: absolute; |
7 left: 10px; | 7 left: 10px; |
8 height: 90px; | 8 height: 90px; |
9 width: 100px; | 9 width: 100px; |
10 background-color: black; | 10 background-color: black; |
(...skipping 22 matching lines...) Expand all Loading... |
33 } else { | 33 } else { |
34 log('FAIL: event timelineTime ' + event.timelineTime + | 34 log('FAIL: event timelineTime ' + event.timelineTime + |
35 ' does not equal timeline currentTime ' + document.timeline.currentT
ime); | 35 ' does not equal timeline currentTime ' + document.timeline.currentT
ime); |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 var playerTop, playerMiddle, playerBottom; | 39 var playerTop, playerMiddle, playerBottom; |
40 | 40 |
41 function onFinishTop(event) { | 41 function onFinishTop(event) { |
42 validateFinishEvent(playerTop, event); | 42 validateFinishEvent(playerTop, event); |
43 testRunner.notifyDone(); | 43 if (window.testRunner) { |
| 44 testRunner.notifyDone(); |
| 45 } |
44 } | 46 } |
45 | 47 |
46 function onFinishMiddle(event) { | 48 function onFinishMiddle(event) { |
47 validateFinishEvent(playerMiddle, event); | 49 validateFinishEvent(playerMiddle, event); |
48 } | 50 } |
49 | 51 |
50 function onFinishBottom(event) { | 52 function onFinishBottom(event) { |
51 validateFinishEvent(playerBottom, event); | 53 validateFinishEvent(playerBottom, event); |
52 } | 54 } |
53 | 55 |
(...skipping 27 matching lines...) Expand all Loading... |
81 </script> | 83 </script> |
82 </head> | 84 </head> |
83 <body> | 85 <body> |
84 <div class="anim" id="top"></div> | 86 <div class="anim" id="top"></div> |
85 <div class="anim" id="middle"></div> | 87 <div class="anim" id="middle"></div> |
86 <div class="anim" id="bottom"></div> | 88 <div class="anim" id="bottom"></div> |
87 <div id="results"></div> | 89 <div id="results"></div> |
88 </body> | 90 </body> |
89 </html> | 91 </html> |
90 | 92 |
OLD | NEW |