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

Side by Side Diff: LayoutTests/inspector/tracing/timeline-receive-response-event.html

Issue 713913002: DevTools: merge TracingTimelineUIUtils into TimelineUIUtils (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Deleted instance refs Created 6 years, 1 month 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="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions(callback) 7 function performActions(callback)
8 { 8 {
9 var image = new Image(); 9 var image = new Image();
10 image.onload = bar; 10 image.onload = bar;
(...skipping 12 matching lines...) Expand all
23 WebInspector.panels.timeline._model._currentTarget = WebInspector.targetMana ger.mainTarget(); 23 WebInspector.panels.timeline._model._currentTarget = WebInspector.targetMana ger.mainTarget();
24 InspectorTest.invokeAsyncWithTimeline("performActions", finish); 24 InspectorTest.invokeAsyncWithTimeline("performActions", finish);
25 25
26 function finish() 26 function finish()
27 { 27 {
28 function dumpFormattedRecord(presentationRecord, prefix) 28 function dumpFormattedRecord(presentationRecord, prefix)
29 { 29 {
30 var record = presentationRecord.record(); 30 var record = presentationRecord.record();
31 prefix = prefix || ""; 31 prefix = prefix || "";
32 // Here and below: pretend coalesced record are just not there, as c oalescation is time dependent and, hence, not stable. 32 // Here and below: pretend coalesced record are just not there, as c oalescation is time dependent and, hence, not stable.
33 var categoryName = WebInspector.panels.timeline._uiUtils.categoryFor Record(record).name; 33 var categoryName = WebInspector.TimelineUIUtils.categoryForRecord(re cord).name;
34 if (categoryName !== "loading" && categoryName !== "scripting") 34 if (categoryName !== "loading" && categoryName !== "scripting")
35 return; 35 return;
36 var childPrefix = prefix; 36 var childPrefix = prefix;
37 // Filter out InjectedScript function call because they happen out o f sync. 37 // Filter out InjectedScript function call because they happen out o f sync.
38 if (!presentationRecord.coalesced() 38 if (!presentationRecord.coalesced()
39 && record.type() !== "GCEvent" 39 && record.type() !== "GCEvent"
40 && (record.type() !== "FunctionCall" || record.data().scriptName !== "InjectedScript")) { 40 && (record.type() !== "FunctionCall" || record.data().scriptName !== "InjectedScript")) {
41 InspectorTest.addResult(prefix + record.type()); 41 InspectorTest.addResult(prefix + record.type());
42 childPrefix = childPrefix + " "; 42 childPrefix = childPrefix + " ";
43 } 43 }
(...skipping 16 matching lines...) Expand all
60 </script> 60 </script>
61 </head> 61 </head>
62 62
63 <body onload="runTest()"> 63 <body onload="runTest()">
64 <p> 64 <p>
65 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc. 65 Tests the Timeline API instrumentation of a SendRequest, ReceiveResponse etc.
66 </p> 66 </p>
67 67
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/tracing/timeline-node-reference.html ('k') | LayoutTests/inspector/tracing/timeline-script-id.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698