| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>WebGL Context Release Test</title> | 5 <title>WebGL Context Release Test</title> |
| 6 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> | 6 <link rel="stylesheet" href="../../js/resources/js-test-style.css"/> |
| 7 <script src="../../js/resources/js-test-pre.js"></script> | 7 <script src="../../js/resources/js-test-pre.js"></script> |
| 8 <script src="resources/webgl-test.js"></script> | 8 <script src="resources/webgl-test.js"></script> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <iframe id="host" style="width: 256px; height: 256px; border: 0;"></iframe> | 11 <iframe id="host" style="width: 256px; height: 256px; border: 0;"></iframe> |
| 12 <div id="description"></div> | 12 <div id="description"></div> |
| 13 <div id="console"></div> | 13 <div id="console"></div> |
| 14 <script> | 14 <script> |
| 15 description("This test ensures that WebGL contexts are released properly upon pa
ge reload"); | 15 description("This test ensures that WebGL contexts are released properly upon pa
ge reload"); |
| 16 | 16 |
| 17 window.jsTestIsAsync = true; |
| 17 if (window.testRunner) { | 18 if (window.testRunner) { |
| 18 testRunner.dumpAsText(); | 19 testRunner.dumpAsText(); |
| 19 testRunner.waitUntilDone(); | 20 testRunner.waitUntilDone(); |
| 20 } | 21 } |
| 21 | 22 |
| 22 var host = document.getElementById("host"); | 23 var host = document.getElementById("host"); |
| 23 var testIterations = 8; | 24 var testIterations = 8; |
| 24 var currentIteration = 0; | 25 var currentIteration = 0; |
| 25 | 26 |
| 26 function refreshFrame() { | 27 function refreshFrame() { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 if(event.data == "Ready") { | 73 if(event.data == "Ready") { |
| 73 testContext(); | 74 testContext(); |
| 74 } | 75 } |
| 75 }); | 76 }); |
| 76 | 77 |
| 77 refreshFrame(); | 78 refreshFrame(); |
| 78 </script> | 79 </script> |
| 79 | 80 |
| 80 </body> | 81 </body> |
| 81 </html> | 82 </html> |
| OLD | NEW |