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

Unified Diff: LayoutTests/inspector/timeline/timeline-coalescing.html

Issue 337023004: Don't create TimelineModel.RecordImpl in TimelinePresentationModel.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-coalescing.html
diff --git a/LayoutTests/inspector/timeline/timeline-coalescing.html b/LayoutTests/inspector/timeline/timeline-coalescing.html
index 0f71a6e639fb2cd4fcb2e011959b2d4677d762e8..dc7527ad097b1acaa7fd71c828b4357d4022e662 100644
--- a/LayoutTests/inspector/timeline/timeline-coalescing.html
+++ b/LayoutTests/inspector/timeline/timeline-coalescing.html
@@ -7,11 +7,11 @@
function initialize_TimelineCoalescing()
{
-InspectorTest.dumpStats = function(record)
+InspectorTest.dumpStats = function(presentationRecord)
{
- if (record.type() === "Root")
+ if (!presentationRecord.presentationParent())
return "";
- var aggregatedStats = record.aggregatedStats();
+ var aggregatedStats = presentationRecord.presentationAggregatedStats();
var timeByCategory = "";
for (category in aggregatedStats) {
@@ -19,8 +19,8 @@ InspectorTest.dumpStats = function(record)
timeByCategory += ", ";
timeByCategory += category + ": " + aggregatedStats[category].toFixed(5);
}
- var duration = (record.endTime() - record.startTime()).toFixed(5);
- var durationTillLastChild = (record.endTime() - record.startTime()).toFixed(5);
+ var duration = (presentationRecord.endTime() - presentationRecord.startTime()).toFixed(5);
+ var durationTillLastChild = (presentationRecord.endTime() - presentationRecord.startTime()).toFixed(5);
return "duration: " + duration + ":" + durationTillLastChild + (timeByCategory ? " (" + timeByCategory + ")" : "");
}
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698