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() | 7 function performActions() |
8 { | 8 { |
9 var iframe = document.createElement("iframe"); | 9 var iframe = document.createElement("iframe"); |
10 iframe.src = "resources/timeline-iframe-data.html"; | 10 iframe.src = "resources/timeline-iframe-data.html"; |
(...skipping 18 matching lines...) Expand all Loading... |
29 { | 29 { |
30 function format(record) | 30 function format(record) |
31 { | 31 { |
32 if (record.type === WebInspector.TimelineModel.RecordType.EvaluateSc
ript) | 32 if (record.type === WebInspector.TimelineModel.RecordType.EvaluateSc
ript) |
33 InspectorTest.printTimelineRecordProperties(record); | 33 InspectorTest.printTimelineRecordProperties(record); |
34 else if (record.type === WebInspector.TimelineModel.RecordType.Parse
HTML) { | 34 else if (record.type === WebInspector.TimelineModel.RecordType.Parse
HTML) { |
35 var children = []; | 35 var children = []; |
36 var skipCategories = { rendering: true, painting: true }; | 36 var skipCategories = { rendering: true, painting: true }; |
37 for (var i = 0; i < record.children.length; ++i) { | 37 for (var i = 0; i < record.children.length; ++i) { |
38 var modelRecord = new WebInspector.TimelineModel.RecordImpl(
WebInspector.panels.timeline._model, record.children[i], null); | 38 var modelRecord = new WebInspector.TimelineModel.RecordImpl(
WebInspector.panels.timeline._model, record.children[i], null); |
39 if (!skipCategories[WebInspector.TimelineUIUtils.categoryFor
Record(modelRecord).name]) | 39 if (!skipCategories[modelRecord.category().name]) |
40 children.push(record.children[i]); | 40 children.push(record.children[i]); |
41 } | 41 } |
42 record.children = children; | 42 record.children = children; |
43 InspectorTest.dumpTimelineRecord(record); | 43 InspectorTest.dumpTimelineRecord(record); |
44 } | 44 } |
45 } | 45 } |
46 InspectorTest.printTimelineRecords(null, format); | 46 InspectorTest.printTimelineRecords(null, format); |
47 InspectorTest.completeTest(); | 47 InspectorTest.completeTest(); |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 </script> | 51 </script> |
52 </head> | 52 </head> |
53 | 53 |
54 <body onload="runTest()"> | 54 <body onload="runTest()"> |
55 <p> | 55 <p> |
56 Tests the Timeline API instrumentation of an HTML script tag. | 56 Tests the Timeline API instrumentation of an HTML script tag. |
57 </p> | 57 </p> |
58 | 58 |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |