OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
5 <script id="vshader" type="x-shader/x-vertex"> | 5 <script id="vshader" type="x-shader/x-vertex"> |
6 attribute vec3 g_Position; | 6 attribute vec3 g_Position; |
7 attribute vec2 g_TexCoord0; | 7 attribute vec2 g_TexCoord0; |
8 | 8 |
9 varying vec2 texCoord; | 9 varying vec2 texCoord; |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 function runTest(antialias) | 161 function runTest(antialias) |
162 { | 162 { |
163 debug("Testing with antialias on"); | 163 debug("Testing with antialias on"); |
164 runTestIteration(true); | 164 runTestIteration(true); |
165 debug("Testing with antialias off"); | 165 debug("Testing with antialias off"); |
166 runTestIteration(false); | 166 runTestIteration(false); |
167 var epilogue = document.createElement("script"); | 167 finishJSTest(); |
168 epilogue.onload = finish; | |
169 epilogue.src = "../../js/resources/js-test-post.js"; | |
170 document.body.appendChild(epilogue); | |
171 } | |
172 | |
173 function finish() { | |
174 if (window.nonKhronosFrameworkNotifyDone) { | |
175 window.nonKhronosFrameworkNotifyDone(); | |
176 } | |
177 } | 168 } |
178 </script> | 169 </script> |
179 </head> | 170 </head> |
180 <body onload="init()"> | 171 <body onload="init()"> |
181 <canvas id="antialiasOn" width="2px" height="2px"></canvas> | 172 <canvas id="antialiasOn" width="2px" height="2px"></canvas> |
182 <canvas id="antialiasOff" width="2px" height="2px"></canvas> | 173 <canvas id="antialiasOff" width="2px" height="2px"></canvas> |
183 <div id="description"></div> | 174 <div id="description"></div> |
184 <div id="console"></div> | 175 <div id="console"></div> |
185 </body> | 176 </body> |
186 </html> | 177 </html> |
OLD | NEW |