| 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 30 matching lines...) Expand all Loading... |
| 41 ctx1.transferFromImageBitmap(image1); | 41 ctx1.transferFromImageBitmap(image1); |
| 42 | 42 |
| 43 var canvas2 = document.getElementById('canvas2'); | 43 var canvas2 = document.getElementById('canvas2'); |
| 44 var ctx2 = canvas2.getContext('bitmaprenderer'); | 44 var ctx2 = canvas2.getContext('bitmaprenderer'); |
| 45 ctx2.transferFromImageBitmap(image2); | 45 ctx2.transferFromImageBitmap(image2); |
| 46 } | 46 } |
| 47 | 47 |
| 48 function waitForFinish() | 48 function waitForFinish() |
| 49 { | 49 { |
| 50 if (g_swapsBeforeAck == 0) { | 50 if (g_swapsBeforeAck == 0) { |
| 51 domAutomationController.setAutomationId(1); | |
| 52 domAutomationController.send("SUCCESS"); | 51 domAutomationController.send("SUCCESS"); |
| 53 } else { | 52 } else { |
| 54 g_swapsBeforeAck--; | 53 g_swapsBeforeAck--; |
| 55 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 54 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
| 56 window.requestAnimationFrame(waitForFinish); | 55 window.requestAnimationFrame(waitForFinish); |
| 57 } | 56 } |
| 58 } | 57 } |
| 59 </script> | 58 </script> |
| 60 </head> | 59 </head> |
| 61 <body onload="main()"> | 60 <body onload="main()"> |
| 62 <div style="position:relative; width:200px; height:200px; background-color:white
"> | 61 <div style="position:relative; width:200px; height:200px; background-color:white
"> |
| 63 </div> | 62 </div> |
| 64 <div id="container" style="position:absolute; top:0px; left:0px"> | 63 <div id="container" style="position:absolute; top:0px; left:0px"> |
| 65 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> | 64 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> |
| 66 </div> | 65 </div> |
| 67 <div id="container" style="position:absolute; top:0px; left:150px"> | 66 <div id="container" style="position:absolute; top:0px; left:150px"> |
| 68 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> | 67 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> |
| 69 </div> | 68 </div> |
| 70 </body> | 69 </body> |
| 71 </html> | 70 </html> |
| OLD | NEW |