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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 function makeWorker(script) | 103 function makeWorker(script) |
104 { | 104 { |
105 var blob = new Blob([script]); | 105 var blob = new Blob([script]); |
106 return new Worker(URL.createObjectURL(blob)); | 106 return new Worker(URL.createObjectURL(blob)); |
107 } | 107 } |
108 | 108 |
109 function waitForFinish() | 109 function waitForFinish() |
110 { | 110 { |
111 if (g_swapsBeforeAck == 0) { | 111 if (g_swapsBeforeAck == 0) { |
112 domAutomationController.setAutomationId(1); | |
113 domAutomationController.send("SUCCESS"); | 112 domAutomationController.send("SUCCESS"); |
114 } else { | 113 } else { |
115 g_swapsBeforeAck--; | 114 g_swapsBeforeAck--; |
116 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 115 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
117 requestAnimationFrame(waitForFinish); | 116 requestAnimationFrame(waitForFinish); |
118 } | 117 } |
119 } | 118 } |
120 | 119 |
121 function main() | 120 function main() |
122 { | 121 { |
(...skipping 13 matching lines...) Expand all Loading... |
136 </head> | 135 </head> |
137 <body onload="main()"> | 136 <body onload="main()"> |
138 <div style="position:relative; width:360px; height:200px; background-color:white
"> | 137 <div style="position:relative; width:360px; height:200px; background-color:white
"> |
139 </div> | 138 </div> |
140 <div id="container" style="position:absolute; top:0px; left:0px"> | 139 <div id="container" style="position:absolute; top:0px; left:0px"> |
141 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> | 140 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> |
142 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> | 141 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> |
143 </div> | 142 </div> |
144 </body> | 143 </body> |
145 </html> | 144 </html> |
OLD | NEW |