| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 } | 110 } |
| 111 | 111 |
| 112 function main() { | 112 function main() { |
| 113 startTest(); | 113 startTest(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 function waitForFinish() | 116 function waitForFinish() |
| 117 { | 117 { |
| 118 if (g_swapsBeforeAck == 0) { | 118 if (g_swapsBeforeAck == 0) { |
| 119 domAutomationController.setAutomationId(1); | |
| 120 domAutomationController.send("SUCCESS"); | 119 domAutomationController.send("SUCCESS"); |
| 121 } else { | 120 } else { |
| 122 g_swapsBeforeAck--; | 121 g_swapsBeforeAck--; |
| 123 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 122 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
| 124 requestAnimationFrame(waitForFinish); | 123 requestAnimationFrame(waitForFinish); |
| 125 } | 124 } |
| 126 } | 125 } |
| 127 </script> | 126 </script> |
| 128 </head> | 127 </head> |
| 129 <body onload="main()"> | 128 <body onload="main()"> |
| 130 <div style="position:relative; width:360px; height:200px; background-color:white
"> | 129 <div style="position:relative; width:360px; height:200px; background-color:white
"> |
| 131 </div> | 130 </div> |
| 132 <div id="container" style="position:absolute; top:0px; left:0px"> | 131 <div id="container" style="position:absolute; top:0px; left:0px"> |
| 133 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> | 132 <canvas id="canvas1" width="180" height="200" class="nomargin"></canvas> |
| 134 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> | 133 <canvas id="canvas2" width="180" height="200" class="nomargin"></canvas> |
| 135 </div> | 134 </div> |
| 136 </body> | 135 </body> |
| 137 </html> | 136 </html> |
| OLD | NEW |