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

Side by Side Diff: chrome/test/data/devtools/animation_frames_page.html

Issue 12310063: Add TestTimelineFrames and TestPageOverlayUpdate tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing new file Created 7 years, 10 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var remainingFrames;
5 function runTest()
6 {
7 remainingFrames = 5;
8 requestAnimationFrame(onFrame);
9 }
10
11 var lastOffset = 0;
12 function onFrame()
13 {
14 var div = document.getElementById("test");
15 lastOffset = (lastOffset + 20) % 200;
yurys 2013/02/25 09:13:48 Inconsistent alignment, also it is 2 spaces in Chr
16 div.style.left = lastOffset + "px";
17 if (--remainingFrames)
18 requestAnimationFrame(onFrame);
19 else
20 done();
21 }
22
23 function done()
24 {
25 console.timeStamp("ready");
26 }
27
28 </script>
29 </head>
30 <body>
31 <div id="test" style="position: absolute; width: 20px; height: 20px; background- color: blue;"></div>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698