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

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: re-added DLOG 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
« no previous file with comments | « chrome/test/data/gpu/feature_canvas2d.html ('k') | chrome/test/data/gpu/feature_webgl.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/test/data/gpu/feature_canvas2d.html ('k') | chrome/test/data/gpu/feature_webgl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698