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 <!-- | 9 <!-- |
10 This is a regression test for crbug.com/666259 . | 10 This is a regression test for crbug.com/666259 . |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 }; | 63 }; |
64 countDown(); | 64 countDown(); |
65 }; | 65 }; |
66 | 66 |
67 function main() { | 67 function main() { |
68 var canvas = document.getElementById("c"); | 68 var canvas = document.getElementById("c"); |
69 var gl = initGL(canvas, false, false); | 69 var gl = initGL(canvas, false, false); |
70 if (gl && setup(gl)) { | 70 if (gl && setup(gl)) { |
71 waitForComposite(function() { | 71 waitForComposite(function() { |
72 gl.drawArrays(gl.TRIANGLES, 0, 3); | 72 gl.drawArrays(gl.TRIANGLES, 0, 3); |
73 domAutomationController.setAutomationId(1); | |
74 domAutomationController.send("SUCCESS"); | 73 domAutomationController.send("SUCCESS"); |
75 }); | 74 }); |
76 } else { | 75 } else { |
77 domAutomationController.setAutomationId(1); | |
78 domAutomationController.send("FAILURE"); | 76 domAutomationController.send("FAILURE"); |
79 } | 77 } |
80 } | 78 } |
81 </script> | 79 </script> |
82 </head> | 80 </head> |
83 <body onload="main()"> | 81 <body onload="main()"> |
84 <div style="position:relative; width:200px; height:200px; background-color:#f00"
></div> | 82 <div style="position:relative; width:200px; height:200px; background-color:#f00"
></div> |
85 <div style="position:absolute; top:0px; left:0px"> | 83 <div style="position:absolute; top:0px; left:0px"> |
86 <canvas id="c" width="200" height="200" class="nomargin"></canvas> | 84 <canvas id="c" width="200" height="200" class="nomargin"></canvas> |
87 </div> | 85 </div> |
88 </body> | 86 </body> |
89 </html> | 87 </html> |
OLD | NEW |