Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: LayoutTests/http/tests/inspector/websocket/timeline-websocket-event.html

Issue 183893010: DevTools: extract TimelineModel.Record from TimelinePresentationModel.Record. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/inspector/inspector-test.js"></script> 3 <script src="/inspector/inspector-test.js"></script>
4 <script src="/inspector/timeline-test.js"></script> 4 <script src="/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions() 7 function performActions()
8 { 8 {
9 var ws = new WebSocket("ws://127.0.0.1:8880/simple"); 9 var ws = new WebSocket("ws://127.0.0.1:8880/simple");
10 10
11 testRunner.display(); 11 testRunner.display();
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 InspectorTest.startTimeline(function() { 16 InspectorTest.startTimeline(function() {
17 InspectorTest.evaluateInPage("performActions()"); 17 InspectorTest.evaluateInPage("performActions()");
18 }); 18 });
19 WebInspector.TimelineModel._doNotAssignEndTime = true;
20 19
21 InspectorTest.waitForRecordType("WebSocketDestroy", finish); 20 InspectorTest.waitForRecordType("WebSocketDestroy", finish);
22 21
23 function finish() 22 function finish()
24 { 23 {
25 InspectorTest.printTimelineRecords("WebSocketCreate"); 24 InspectorTest.printTimelineRecords("WebSocketCreate");
26 InspectorTest.printTimelineRecords("WebSocketSendHandshakeRequest"); 25 InspectorTest.printTimelineRecords("WebSocketSendHandshakeRequest");
27 InspectorTest.printTimelineRecords("WebSocketReceiveHandshakeResponse"); 26 InspectorTest.printTimelineRecords("WebSocketReceiveHandshakeResponse");
28 InspectorTest.printTimelineRecords("WebSocketDestroy"); 27 InspectorTest.printTimelineRecords("WebSocketDestroy");
29 InspectorTest.completeTest(); 28 InspectorTest.completeTest();
30 } 29 }
31 } 30 }
32 31
33 if (!window.testRunner) 32 if (!window.testRunner)
34 setTimeout(performActions, 2000); 33 setTimeout(performActions, 2000);
35 34
36 </script> 35 </script>
37 </head> 36 </head>
38 37
39 <body onload="runTest()"> 38 <body onload="runTest()">
40 <p> 39 <p>
41 Tests the Timeline events for WebSocket 40 Tests the Timeline events for WebSocket
42 </p> 41 </p>
43 42
44 </body> 43 </body>
45 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698