Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / timeline / timeline-script-tag-1.html
index e580f9a..9aa27a8 100644 (file)
@@ -29,18 +29,27 @@ function test()
     {
         function format(record)
         {
-            if (record.type === WebInspector.TimelineModel.RecordType.EvaluateScript)
+            if (record.type() === WebInspector.TimelineModel.RecordType.EvaluateScript)
                 InspectorTest.printTimelineRecordProperties(record);
-            else if (record.type === WebInspector.TimelineModel.RecordType.ParseHTML) {
+            else if (record.type() === WebInspector.TimelineModel.RecordType.ParseHTML) {
                 var children = [];
                 var skipCategories = { rendering: true, painting: true };
-                for (var i = 0; i < record.children.length; ++i) {
-                    var modelRecord = new WebInspector.TimelineModel.RecordImpl(WebInspector.panels.timeline._model, record.children[i], null);
-                    if (!skipCategories[modelRecord.category().name])
-                        children.push(record.children[i]);
+                for (var i = 0; i < record.children().length; ++i) {
+                    var modelRecord = new WebInspector.TimelineModel.RecordImpl(WebInspector.panels.timeline._model, record.children()[i], null);
+                    var uiUtils = WebInspector.panels.timeline._uiUtils;
+                    if (!skipCategories[uiUtils.categoryForRecord(modelRecord).name])
+                        children.push(record.children()[i]);
                 }
-                record.children = children;
-                InspectorTest.dumpTimelineRecord(record);
+                record._children = children;
+                InspectorTest.dumpTimelineRecord(record, undefined, undefined, [
+                    "ParseHTML",
+                    "EvaluateScript",
+                    "EventDispatch",
+                    "FunctionCall",
+                    "TimeStamp",
+                    "MarkLoad",
+                    "MarkDOMContent"
+                ]);
             }
         }
         InspectorTest.printTimelineRecords(null, format);