Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / reload-crash.html
blob84305b89d950a7da71d30b039fc81e5d9a1c696f
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 </head>
6 <body>
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;
14 var frameDiv;
15 var reloadCount = 0;
17 document.iframeReady = function ()
19 if (reloadCount == 0)
20 debug("PASS iframe is ready.");
21 else if (reloadCount == 1) {
22 debug("PASS reloaded iframe while WebSocket is busy");
23 finishJSTest();
24 } else
25 testFailed("iframe should not get reloaded more than once. (reloadCount = " + reloadCount + ")");
26 return 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");
34 </script>
35 </body>
36 </html>