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

Unified Diff: chrome/test/data/gpu/feature_compositing.html

Issue 8692013: Improve GPU tests to fail when GPU drawing fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests seem to be fixed Created 9 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698