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

Side by Side Diff: content/test/data/gpu/pixel_offscreenCanvas_transferToImageBitmap_worker.html

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 months 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 2
3 <!-- READ BEFORE UPDATING: 3 <!-- READ BEFORE UPDATING:
4 If this test is updated make sure to increment the "revision" value of the 4 If this test is updated make sure to increment the "revision" value of the
5 associated test in content/test/gpu/gpu_tests/pixel_test_pages.py. This will ens ure 5 associated test in content/test/gpu/gpu_tests/pixel_test_pages.py. This will ens ure
6 that the baseline images are regenerated on the next run. 6 that the baseline images are regenerated on the next run.
7 --> 7 -->
8 8
9 <html> 9 <html>
10 <head> 10 <head>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ctx2.transferFromImageBitmap(bitmap2); 60 ctx2.transferFromImageBitmap(bitmap2);
61 waitForFinish(); 61 waitForFinish();
62 } 62 }
63 63
64 worker.postMessage(""); 64 worker.postMessage("");
65 } 65 }
66 66
67 function waitForFinish() 67 function waitForFinish()
68 { 68 {
69 if (g_swapsBeforeAck == 0) { 69 if (g_swapsBeforeAck == 0) {
70 domAutomationController.setAutomationId(1);
71 domAutomationController.send("SUCCESS"); 70 domAutomationController.send("SUCCESS");
72 } else { 71 } else {
73 g_swapsBeforeAck--; 72 g_swapsBeforeAck--;
74 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; 73 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1;
75 window.requestAnimationFrame(waitForFinish); 74 window.requestAnimationFrame(waitForFinish);
76 } 75 }
77 } 76 }
78 </script> 77 </script>
79 </head> 78 </head>
80 <body onload="main()"> 79 <body onload="main()">
81 <div style="position:relative; width:200px; height:200px; background-color:white "> 80 <div style="position:relative; width:200px; height:200px; background-color:white ">
82 </div> 81 </div>
83 <div id="container" style="position:absolute; top:0px; left:0px"> 82 <div id="container" style="position:absolute; top:0px; left:0px">
84 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> 83 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas>
85 </div> 84 </div>
86 <div id="container" style="position:absolute; top:0px; left:150px"> 85 <div id="container" style="position:absolute; top:0px; left:150px">
87 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> 86 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas>
88 </div> 87 </div>
89 </body> 88 </body>
90 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698