3 <script src="/inspector/inspector-test.js"></script>
4 <script src="/inspector/timeline-test.js"></script>
7 function performActions()
9 var ws = new WebSocket("ws://127.0.0.1:8880/simple");
16 InspectorTest.startTimeline(function() {
17 InspectorTest.evaluateInPage("performActions()");
20 InspectorTest.waitForRecordType("WebSocketDestroy", finish);
24 InspectorTest.printTimelineRecords("WebSocketCreate");
25 InspectorTest.printTimelineRecords("WebSocketSendHandshakeRequest");
26 InspectorTest.printTimelineRecords("WebSocketReceiveHandshakeResponse");
27 InspectorTest.printTimelineRecords("WebSocketDestroy");
28 InspectorTest.completeTest();
32 if (!window.testRunner)
33 setTimeout(performActions, 2000);
38 <body onload="runTest()">
40 Tests the Timeline events for WebSocket