| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../inspector-test.js"></script> | |
| 4 <script src="../timeline-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function performActions(callback) | |
| 8 { | |
| 9 var ws = new WebSocket("ws://127.0.0.1:8880/simple"); | |
| 10 ws.onclose = callback; | |
| 11 } | |
| 12 | |
| 13 function test() | |
| 14 { | |
| 15 InspectorTest.invokeAsyncWithTimeline("performActions", finish); | |
| 16 | |
| 17 function finish() | |
| 18 { | |
| 19 InspectorTest.printTimelineRecords("WebSocketCreate"); | |
| 20 InspectorTest.printTimelineRecords("WebSocketSendHandshakeRequest"); | |
| 21 InspectorTest.printTimelineRecords("WebSocketReceiveHandshakeResponse"); | |
| 22 InspectorTest.printTimelineRecords("WebSocketDestroy"); | |
| 23 InspectorTest.completeTest(); | |
| 24 } | |
| 25 } | |
| 26 | |
| 27 if (!window.testRunner) | |
| 28 setTimeout(performActions, 2000); | |
| 29 | |
| 30 </script> | |
| 31 </head> | |
| 32 | |
| 33 <body onload="runTest()"> | |
| 34 <p> | |
| 35 Tests the Timeline events for WebSocket | |
| 36 </p> | |
| 37 | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |