2010-02-03 Fumitoshi Ukai <ukai@chromium.org>
[WebKit-https.git] / LayoutTests / websocket / tests / resources / close-on-unload-iframe.html~
1 <html>
2 <head>
3 <script src="../../../fast/js/resources/js-test-pre.js"></script>
4 <script src="../../../fast/js/resources/js-test-post-function.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/close-on-unload");
11 ws.onopen = function()
12 {
13     debug("ws in iframe opened");
14     ws.send("socket1");
15 };
16 ws.onmessage = function(evt)
17 {
18     debug("ws in iframe got message:" + evt.data);
19     parent.document.iframeReady(evt.data);
20 }
21 </script>
22 </body>
23 </html>