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/page_sets/pixel_tests.py. This will ensure | 5 associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); | 70 domAutomationController.setAutomationId(1); |
71 domAutomationController.send("SUCCESS"); | 71 domAutomationController.send("SUCCESS"); |
72 } else { | 72 } else { |
73 g_swapsBeforeAck--; | 73 g_swapsBeforeAck--; |
74 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 74 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
75 window.webkitRequestAnimationFrame(waitForFinish); | 75 window.requestAnimationFrame(waitForFinish); |
76 } | 76 } |
77 } | 77 } |
78 </script> | 78 </script> |
79 </head> | 79 </head> |
80 <body onload="main()"> | 80 <body onload="main()"> |
81 <div style="position:relative; width:200px; height:200px; background-color:white
"> | 81 <div style="position:relative; width:200px; height:200px; background-color:white
"> |
82 </div> | 82 </div> |
83 <div id="container" style="position:absolute; top:0px; left:0px"> | 83 <div id="container" style="position:absolute; top:0px; left:0px"> |
84 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> | 84 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> |
85 </div> | 85 </div> |
86 <div id="container" style="position:absolute; top:0px; left:150px"> | 86 <div id="container" style="position:absolute; top:0px; left:150px"> |
87 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> | 87 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> |
88 </div> | 88 </div> |
89 </body> | 89 </body> |
90 </html> | 90 </html> |
OLD | NEW |