OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |