OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="../../../../../js-test-resources/js-test-pre.js"></script> | 4 <script src="../../../../../js-test-resources/js-test.js"></script> |
5 <script> | 5 <script> |
6 var ws; | 6 var ws; |
7 function sendMessages() { | 7 function sendMessages() { |
8 ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/echo"); | 8 ws = new WebSocket("ws://localhost:8880/websocket/tests/hybi/echo"); |
9 ws.onopen = function() | 9 ws.onopen = function() |
10 { | 10 { |
11 debug("Connected."); | 11 debug("Connected."); |
12 ws.send("test"); | 12 ws.send("test"); |
13 ws.send("exit"); | 13 ws.send("exit"); |
14 }; | 14 }; |
(...skipping 15 matching lines...) Expand all Loading... |
30 } | 30 } |
31 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.Eve
ntTypes.RequestUpdated, onRequest); | 31 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.Eve
ntTypes.RequestUpdated, onRequest); |
32 InspectorTest.evaluateInPage("sendMessages()"); | 32 InspectorTest.evaluateInPage("sendMessages()"); |
33 } | 33 } |
34 </script> | 34 </script> |
35 </head> | 35 </head> |
36 <body onload="runTest()"> | 36 <body onload="runTest()"> |
37 <p>Tests that WebSocketFrames are being sent and recieved by Web Inspector.</p> | 37 <p>Tests that WebSocketFrames are being sent and recieved by Web Inspector.</p> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |