| 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 src="resources/webgl-test-utils.js"></script> | 5 <script src="resources/webgl-test-utils.js"></script> |
| 6 <script> | 6 <script> |
| 7 var wtu = WebGLTestUtils; | 7 var wtu = WebGLTestUtils; |
| 8 var gl = null; | 8 var gl = null; |
| 9 var textureLoc = null; | 9 var textureLoc = null; |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Spot check a couple of 2x2 regions in the upper and lower left | 63 // Spot check a couple of 2x2 regions in the upper and lower left |
| 64 // corners; they should be the rgb values in the texture. | 64 // corners; they should be the rgb values in the texture. |
| 65 color = [0, 0, 0]; | 65 color = [0, 0, 0]; |
| 66 debug("Checking lower left corner"); | 66 debug("Checking lower left corner"); |
| 67 wtu.checkCanvasRect(gl, 1, gl.canvas.height - 3, 2, 2, color, | 67 wtu.checkCanvasRect(gl, 1, gl.canvas.height - 3, 2, 2, color, |
| 68 "shouldBe " + color); | 68 "shouldBe " + color); |
| 69 debug("Checking upper left corner"); | 69 debug("Checking upper left corner"); |
| 70 wtu.checkCanvasRect(gl, 1, 1, 2, 2, color, | 70 wtu.checkCanvasRect(gl, 1, 1, 2, 2, color, |
| 71 "shouldBe " + color); | 71 "shouldBe " + color); |
| 72 var epilogue = document.createElement("script"); | |
| 73 epilogue.onload = finish; | |
| 74 epilogue.src = "../../js/resources/js-test-post.js"; | |
| 75 document.body.appendChild(epilogue); | |
| 76 } | |
| 77 | 72 |
| 78 function finish() { | 73 finishJSTest(); |
| 79 if (window.nonKhronosFrameworkNotifyDone) { | |
| 80 window.nonKhronosFrameworkNotifyDone(); | |
| 81 } | |
| 82 } | 74 } |
| 83 </script> | 75 </script> |
| 84 </head> | 76 </head> |
| 85 <body onload="init()"> | 77 <body onload="init()"> |
| 86 <canvas id="example" width="32px" height="32px"></canvas> | 78 <canvas id="example" width="32px" height="32px"></canvas> |
| 87 <div id="description"></div> | 79 <div id="description"></div> |
| 88 <div id="console"></div> | 80 <div id="console"></div> |
| 89 </body> | 81 </body> |
| 90 </html> | 82 </html> |
| OLD | NEW |