1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"/js-test-resources/js-test.js"></script>
7 <div id=
"description"></div>
8 <div id=
"console"></div>
9 <script type=
"text/javascript">
10 description("Test if it doesn't crash when reloading while WebSocket is busy");
12 window
.jsTestIsAsync
= true;
17 document
.iframeReady = function ()
20 debug("PASS iframe is ready.");
21 else if (reloadCount
== 1) {
22 debug("PASS reloaded iframe while WebSocket is busy");
25 testFailed("iframe should not get reloaded more than once. (reloadCount = " + reloadCount
+ ")");
29 frameDiv
= document
.createElement("iframe");
30 frameDiv
.src
= "resources/reload-crash-iframe.html";
31 document
.body
.appendChild(frameDiv
);
32 debug("PASS insert a iframe");