OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="description"></div> | 7 <div id="description"></div> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 description("Reload after WebSocket creation should not cause a crash."); | 10 description("Reload after WebSocket creation should not cause a crash."); |
11 | 11 |
12 window.jsTestIsAsync = true; | 12 window.jsTestIsAsync = true; |
13 | 13 |
14 document.iframeFinished = function() | 14 document.iframeFinished = function() |
15 { | 15 { |
16 testPassed("Test finished."); | 16 testPassed("Test finished."); |
17 finishJSTest(); | 17 finishJSTest(); |
18 }; | 18 }; |
19 | 19 |
20 var iframeElement = document.createElement("iframe"); | 20 var iframeElement = document.createElement("iframe"); |
21 iframeElement.src = "resources/worker-reload-iframe.html"; | 21 iframeElement.src = "resources/worker-reload-iframe.html"; |
22 document.body.appendChild(iframeElement); | 22 document.body.appendChild(iframeElement); |
23 testPassed("Inserted <iframe>."); | 23 testPassed("Inserted <iframe>."); |
24 </script> | 24 </script> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |