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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 gl.vertexAttribPointer(attr, 2, gl.FLOAT, false, 0, 0); | 73 gl.vertexAttribPointer(attr, 2, gl.FLOAT, false, 0, 0); |
74 | 74 |
75 gl.drawArrays(gl.TRIANGLE_STRIP, 0, 3); | 75 gl.drawArrays(gl.TRIANGLE_STRIP, 0, 3); |
76 | 76 |
77 gl.commit(); | 77 gl.commit(); |
78 } | 78 } |
79 | 79 |
80 function waitForFinish() | 80 function waitForFinish() |
81 { | 81 { |
82 if (g_swapsBeforeAck == 0) { | 82 if (g_swapsBeforeAck == 0) { |
83 domAutomationController.setAutomationId(1); | |
84 domAutomationController.send("SUCCESS"); | 83 domAutomationController.send("SUCCESS"); |
85 } else { | 84 } else { |
86 g_swapsBeforeAck--; | 85 g_swapsBeforeAck--; |
87 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; | 86 document.getElementById('container').style.zIndex = g_swapsBeforeAck + 1; |
88 window.requestAnimationFrame(waitForFinish); | 87 window.requestAnimationFrame(waitForFinish); |
89 } | 88 } |
90 } | 89 } |
91 </script> | 90 </script> |
92 </head> | 91 </head> |
93 <body onload="main()"> | 92 <body onload="main()"> |
94 <div style="position:relative; width:300px; height:300px; background-color:white
"> | 93 <div style="position:relative; width:300px; height:300px; background-color:white
"> |
95 </div> | 94 </div> |
96 <div id="container" style="position:absolute; top:0px; left:0px"> | 95 <div id="container" style="position:absolute; top:0px; left:0px"> |
97 <canvas id="c" width="300" height="300" class="nomargin"></canvas> | 96 <canvas id="c" width="300" height="300" class="nomargin"></canvas> |
98 </div> | 97 </div> |
99 </body> | 98 </body> |
100 </html> | 99 </html> |
OLD | NEW |