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

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

Issue 461323003: DevTools: Make Timeline tests use only model records (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-script-tag-1.html
diff --git a/LayoutTests/inspector/timeline/timeline-script-tag-1.html b/LayoutTests/inspector/timeline/timeline-script-tag-1.html
index 9de11bb49759d140e2edddb14cf4d83f663335a0..9aa27a88933c521831aa293619422891599b04c9 100644
--- a/LayoutTests/inspector/timeline/timeline-script-tag-1.html
+++ b/LayoutTests/inspector/timeline/timeline-script-tag-1.html
@@ -29,18 +29,18 @@ 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);
+ 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]);
+ children.push(record.children()[i]);
}
- record.children = children;
+ record._children = children;
InspectorTest.dumpTimelineRecord(record, undefined, undefined, [
"ParseHTML",
"EvaluateScript",

Powered by Google App Engine
This is Rietveld 408576698