OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title></title> | 3 <title></title> |
4 <style> | 4 <style> |
5 div { | 5 div { |
6 width: 40px; | 6 width: 40px; |
7 height: 40px; | 7 height: 40px; |
8 background: url(resources/animated.gif) top left no-repeat, | 8 background: url(resources/animated.gif) top left no-repeat, |
9 url(resources/animated2.gif) bottom right no-repeat; | 9 url(resources/animated2.gif) bottom right no-repeat; |
10 } | 10 } |
11 </style> | 11 </style> |
| 12 <script src="../../resources/run-after-display.js"></script> |
12 <script> | 13 <script> |
13 function step2() | 14 function step1() |
14 { | 15 { |
| 16 document.getElementById("target").style.display="none"; |
| 17 document.body.offsetTop; |
15 if (window.testRunner) | 18 if (window.testRunner) |
16 testRunner.notifyDone(); | 19 testRunner.notifyDone(); |
17 } | 20 } |
18 | 21 |
19 function step1() | |
20 { | |
21 if (window.testRunner) | |
22 testRunner.display(); | |
23 document.getElementById("target").style.display="none"; | |
24 document.body.offsetTop; | |
25 setTimeout("step2()", 200); | |
26 } | |
27 | |
28 function test() | 22 function test() |
29 { | 23 { |
30 if (window.testRunner) { | 24 if (window.testRunner) { |
31 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
32 testRunner.waitUntilDone(); | 26 testRunner.waitUntilDone(); |
33 } | 27 } |
34 setTimeout("step1()", 100); | 28 runAfterDisplay(step1); |
35 } | 29 } |
36 </script> | 30 </script> |
37 </head> | 31 </head> |
38 <body onload="test()"> | 32 <body onload="test()"> |
39 <p> | 33 <p> |
40 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12487">http:
//bugs.webkit.org/show_bug.cgi?id=12487</a> | 34 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12487">http:
//bugs.webkit.org/show_bug.cgi?id=12487</a> |
41 REGRESSION: Repro crash when a second background image is animated</i>. | 35 REGRESSION: Repro crash when a second background image is animated</i>. |
42 </p> | 36 </p> |
43 <p> | 37 <p> |
44 This test should not make Safari crash. | 38 This test should not make Safari crash. |
45 </p> | 39 </p> |
46 <div id="target"></div> | 40 <div id="target"></div> |
47 </body> | 41 </body> |
48 </html> | 42 </html> |
OLD | NEW |