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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-script-tag-1.html

Issue 337283004: Inline usages of TimelineUIUtils.categoryForRecord (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineEventOverview.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() 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
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>
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/timeline/TimelineEventOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698