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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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); | 51 domAutomationController.setAutomationId(1); |
52 domAutomationController.send("SUCCESS"); | 52 domAutomationController.send("SUCCESS"); |
53 } else { | 53 } else { |
54 g_swapsBeforeAck--; | 54 g_swapsBeforeAck--; |
55 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 55 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
56 window.webkitRequestAnimationFrame(waitForFinish); | 56 window.requestAnimationFrame(waitForFinish); |
57 } | 57 } |
58 } | 58 } |
59 </script> | 59 </script> |
60 </head> | 60 </head> |
61 <body onload="main()"> | 61 <body onload="main()"> |
62 <div style="position:relative; width:200px; height:200px; background-color:white
"> | 62 <div style="position:relative; width:200px; height:200px; background-color:white
"> |
63 </div> | 63 </div> |
64 <div id="container" style="position:absolute; top:0px; left:0px"> | 64 <div id="container" style="position:absolute; top:0px; left:0px"> |
65 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> | 65 <canvas id="canvas1" width="100" height="100" class="nomargin"></canvas> |
66 </div> | 66 </div> |
67 <div id="container" style="position:absolute; top:0px; left:150px"> | 67 <div id="container" style="position:absolute; top:0px; left:150px"> |
68 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> | 68 <canvas id="canvas2" width="100" height="100" class="nomargin"></canvas> |
69 </div> | 69 </div> |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |