Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / animated-gif-fast-crash.html
blob2214ad9ccbb5ce6d4547d4d9c65aada8c401b4ac
1 <!DOCTYPE html>
2 Tests fast animating gif (10ms per frame). Passes if it doesn't crash.<br>
3 <img src="resources/animated-10color-fast.gif">
4 <script>
6 // Busy-wait 50ms to trigger the bug of invalidation during paint.
7 // The busy-waiting (as opposed to setTimout) is intentional, in order to
8 // block the thread.
9 function delay() {
10 var startTime = new Date().getTime();
11 while (new Date().getTime() - startTime < 50);
14 var count = 3;
16 function displayOneFrame() {
17 delay();
18 if (--count >= 0)
19 testRunner.layoutAndPaintAsyncThen(displayOneFrame);
20 else
21 testRunner.notifyDone();
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.waitUntilDone();
27 displayOneFrame();
30 </script>