Index: chrome/test/data/devtools/animation_frames_page.html |
diff --git a/chrome/test/data/devtools/animation_frames_page.html b/chrome/test/data/devtools/animation_frames_page.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f924777c147977d814e4f48d3fb7d472ecf46017 |
--- /dev/null |
+++ b/chrome/test/data/devtools/animation_frames_page.html |
@@ -0,0 +1,33 @@ |
+<html> |
+<head> |
+<script> |
+var remainingFrames; |
+function runTest() |
+{ |
+ remainingFrames = 5; |
+ requestAnimationFrame(onFrame); |
+} |
+ |
+var lastOffset = 0; |
+function onFrame() |
+{ |
+ var div = document.getElementById("test"); |
+ lastOffset = (lastOffset + 20) % 200; |
yurys
2013/02/25 09:13:48
Inconsistent alignment, also it is 2 spaces in Chr
|
+ div.style.left = lastOffset + "px"; |
+ if (--remainingFrames) |
+ requestAnimationFrame(onFrame); |
+ else |
+ done(); |
+ } |
+ |
+function done() |
+{ |
+ console.timeStamp("ready"); |
+} |
+ |
+</script> |
+</head> |
+<body> |
+<div id="test" style="position: absolute; width: 20px; height: 20px; background-color: blue;"></div> |
+</body> |
+</html> |