blob: 2214ad9ccbb5ce6d4547d4d9c65aada8c401b4ac [file] [log] [blame]
<!DOCTYPE html>
Tests fast animating gif (10ms per frame). Passes if it doesn't crash.<br>
<img src="resources/animated-10color-fast.gif">
<script>
// Busy-wait 50ms to trigger the bug of invalidation during paint.
// The busy-waiting (as opposed to setTimout) is intentional, in order to
// block the thread.
function delay() {
var startTime = new Date().getTime();
while (new Date().getTime() - startTime < 50);
}
var count = 3;
function displayOneFrame() {
delay();
if (--count >= 0)
testRunner.layoutAndPaintAsyncThen(displayOneFrame);
else
testRunner.notifyDone();
}
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
displayOneFrame();
}
</script>