OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function step2() { | 4 function step2() { |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.notifyDone(); | 6 testRunner.notifyDone(); |
7 } | 7 } |
8 function step1() { | 8 function step1() { |
9 document.getElementById('replaceme').src = 'resources/gif-loop-count.gif
'; | 9 document.getElementById('replaceme').src = 'resources/gif-loop-count.gif
'; |
10 setTimeout("step2()", 200); | 10 setTimeout("step2()", 200); |
11 } | 11 } |
12 function test() { | 12 function test() { |
13 if (window.testRunner) { | 13 if (window.testRunner) { |
14 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
15 } | 15 } |
16 setTimeout("step1()", 200); | 16 setTimeout("step1()", 200); |
17 } | 17 } |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <body onload="test()"> | 20 <body onload="test()"> |
21 <img src="resources/gif-loop-count.gif" style="position:absolute;left:0;top:0"> | 21 <img src="resources/gif-loop-count.gif" style="position:absolute;left:0;top:0"> |
22 <img src="resources/gif-loop-count.png" id="replaceme" style="position:absolute;
left:0;top:0"> | 22 <img src="resources/gif-loop-count.png" id="replaceme" style="position:absolute;
left:0;top:0"> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |