| OLD | NEW |
| (Empty) |
| 1 <body> | |
| 2 <p>Layout test for | |
| 3 <a href="http://bugs.webkit.org/show_bug.cgi?id=11760">11760</a>. If it | |
| 4 doesn't crash, we're good. | |
| 5 <img src="resources/animated-gif-with-offsets.gif"> | |
| 6 </body> | |
| 7 <script> | |
| 8 | |
| 9 // Delay 50ms for each frame. | |
| 10 function delay() { | |
| 11 var startTime = new Date().getTime(); | |
| 12 while (new Date().getTime() - startTime < 50); | |
| 13 } | |
| 14 | |
| 15 var count = 3; | |
| 16 | |
| 17 function displayOneFrame() { | |
| 18 delay(); | |
| 19 if (--count >= 0) | |
| 20 testRunner.layoutAndPaintAsyncThen(displayOneFrame); | |
| 21 else | |
| 22 testRunner.notifyDone(); | |
| 23 } | |
| 24 | |
| 25 if (window.testRunner) { | |
| 26 testRunner.waitUntilDone(); | |
| 27 testRunner.dumpAsText(); | |
| 28 setTimeout(displayOneFrame, 50); | |
| 29 } | |
| 30 | |
| 31 </script> | |
| OLD | NEW |