OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 var g_swapsBeforeAck = 15; | 114 var g_swapsBeforeAck = 15; |
115 | 115 |
116 function makeWorker(script) { | 116 function makeWorker(script) { |
117 var blob = new Blob([script]); | 117 var blob = new Blob([script]); |
118 return new Worker(URL.createObjectURL(blob)); | 118 return new Worker(URL.createObjectURL(blob)); |
119 } | 119 } |
120 | 120 |
121 function waitForFinish() | 121 function waitForFinish() |
122 { | 122 { |
123 if (g_swapsBeforeAck == 0) { | 123 if (g_swapsBeforeAck == 0) { |
124 domAutomationController.setAutomationId(1); | |
125 domAutomationController.send("SUCCESS"); | 124 domAutomationController.send("SUCCESS"); |
126 } else { | 125 } else { |
127 g_swapsBeforeAck--; | 126 g_swapsBeforeAck--; |
128 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 127 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
129 window.requestAnimationFrame(waitForFinish); | 128 window.requestAnimationFrame(waitForFinish); |
130 } | 129 } |
131 } | 130 } |
132 | 131 |
133 function main() | 132 function main() |
134 { | 133 { |
(...skipping 13 matching lines...) Expand all Loading... |
148 </head> | 147 </head> |
149 <body onload="main()"> | 148 <body onload="main()"> |
150 <div style="position:relative; width:360px; height:200px; background-color:white
"> | 149 <div style="position:relative; width:360px; height:200px; background-color:white
"> |
151 </div> | 150 </div> |
152 <div id="container" style="position:absolute; top:0px; left:0px"> | 151 <div id="container" style="position:absolute; top:0px; left:0px"> |
153 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> | 152 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> |
154 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> | 153 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> |
155 </div> | 154 </div> |
156 </body> | 155 </body> |
157 </html> | 156 </html> |
OLD | NEW |