Index: chrome/test/data/gpu/feature_compositing.html |
diff --git a/chrome/test/data/gpu/feature_compositing.html b/chrome/test/data/gpu/feature_compositing.html |
index 2ffed5e1ed1739668ee947d135e4df6622b62c97..164b11dadb090062640c15c9f18dd7ae317d85ab 100644 |
--- a/chrome/test/data/gpu/feature_compositing.html |
+++ b/chrome/test/data/gpu/feature_compositing.html |
@@ -9,9 +9,20 @@ body { |
} |
</style> |
<script> |
+var frameCount = 0; |
+ |
function runTest() { |
- domAutomationController.setAutomationId(1); |
- domAutomationController.send("FINISHED"); |
+ window.webkitRequestAnimationFrame(draw); |
+} |
+function draw() { |
+ frameCount++; |
+ document.body.style.backgroundColor = (frameCount & 1) ? "red" : "blue"; |
+ if (frameCount == 5) { |
+ domAutomationController.setAutomationId(1); |
+ domAutomationController.send("FINISHED"); |
+ } else { |
+ window.webkitRequestAnimationFrame(draw); |
+ } |
} |
</script> |
</head> |