| 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()">
|
|
|