Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/images/animated-gif-with-offsets.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698