| 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 | 7 |
| 8 var evt; | 8 var evt; |
| 9 var canvas; | 9 var canvas; |
| 10 var context; | 10 var context; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 debug("Test that the event passed to a listener of webglcontextrestored
is a WebGLContextEvent.") | 60 debug("Test that the event passed to a listener of webglcontextrestored
is a WebGLContextEvent.") |
| 61 shouldBe("evt.toString()", "'[object WebGLContextEvent]'"); | 61 shouldBe("evt.toString()", "'[object WebGLContextEvent]'"); |
| 62 shouldBe("evt.statusMessage", "''"); | 62 shouldBe("evt.statusMessage", "''"); |
| 63 | 63 |
| 64 setTimeout(finish, 0); | 64 setTimeout(finish, 0); |
| 65 }, false); | 65 }, false); |
| 66 extension.loseContext(); | 66 extension.loseContext(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 function finish() { | 69 function finish() { |
| 70 var epilogue = document.createElement("script"); | 70 finishJSTest(); |
| 71 epilogue.onload = function() { | |
| 72 if (window.nonKhronosFrameworkNotifyDone) | |
| 73 window.nonKhronosFrameworkNotifyDone(); | |
| 74 }; | |
| 75 epilogue.src = "../../js/resources/js-test-post.js"; | |
| 76 document.body.appendChild(epilogue); | |
| 77 } | 71 } |
| 78 | 72 |
| 79 </script> | 73 </script> |
| 80 | 74 |
| 81 </head> | 75 </head> |
| 82 <body onload="runTest1()"> | 76 <body onload="runTest1()"> |
| 83 <div id="description"></div> | 77 <div id="description"></div> |
| 84 <div id="console"></div> | 78 <div id="console"></div> |
| 85 <canvas id="canvas"> | 79 <canvas id="canvas"> |
| 86 </body> | 80 </body> |
| 87 </html> | 81 </html> |
| OLD | NEW |