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:8000/websocket/tests/hybi/does_not_exist"
); | 8 ws = new WebSocket("ws://localhost:8000/websocket/tests/hybi/does_not_exist"
); |
9 ws.onclose = function() | 9 ws.onclose = function() |
10 { | 10 { |
11 debug("Closed."); | 11 debug("Closed."); |
12 }; | 12 }; |
13 } | 13 } |
14 | 14 |
(...skipping 13 matching lines...) Expand all Loading... |
28 } | 28 } |
29 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.Eve
ntTypes.RequestUpdated, onRequest); | 29 WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.Eve
ntTypes.RequestUpdated, onRequest); |
30 InspectorTest.evaluateInPage("sendMessages()"); | 30 InspectorTest.evaluateInPage("sendMessages()"); |
31 } | 31 } |
32 </script> | 32 </script> |
33 </head> | 33 </head> |
34 <body onload="runTest()"> | 34 <body onload="runTest()"> |
35 <p>Tests that WebSocketFrames errors are visible to Web Inspector.</p> | 35 <p>Tests that WebSocketFrames errors are visible to Web Inspector.</p> |
36 </body> | 36 </body> |
37 </html> | 37 </html> |
OLD | NEW |