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

Unified Diff: content/test/data/gpu/pixel_scissor.html

Issue 2466733003: Wait a few swaps to make Pixel_ScissorTestWithPreserveDrawingBuffer more robust. (Closed)
Patch Set: Rebased. Created 4 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 | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_scissor.html
diff --git a/content/test/data/gpu/pixel_scissor.html b/content/test/data/gpu/pixel_scissor.html
index aa48cdab79cde4ddef139f16715136d76f2ccd4c..b1c2e2fb910466877b38783ea508280e849dc410 100644
--- a/content/test/data/gpu/pixel_scissor.html
+++ b/content/test/data/gpu/pixel_scissor.html
@@ -38,9 +38,21 @@ function scissorAndClear() {
gl.clearColor(0, 1, 0, 1);
gl.clear(gl.COLOR_BUFFER_BIT);
- domAutomationController.setAutomationId(1);
- domAutomationController.send("SUCCESS");
+ deferredAck();
}
+
+var swapsBeforeAck = 15;
+function deferredAck()
+{
+ if (swapsBeforeAck == 0) {
+ domAutomationController.setAutomationId(1);
+ domAutomationController.send("SUCCESS");
+ } else {
+ --swapsBeforeAck;
+ window.requestAnimationFrame(deferredAck);
+ }
+}
+
</script>
</head>
<body onload="run()">
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698