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

Unified Diff: LayoutTests/http/tests/inspector/timeline-test.js

Issue 731293006: Implement style invalidation tracking (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address reviewer comments, cleanup Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-enum-stability-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/timeline-test.js
diff --git a/LayoutTests/http/tests/inspector/timeline-test.js b/LayoutTests/http/tests/inspector/timeline-test.js
index 514a8639e081a3677c1926a196e5d3769440bf80..3e893afd21a5cd45b66a081b60a9f764b5273e19 100644
--- a/LayoutTests/http/tests/inspector/timeline-test.js
+++ b/LayoutTests/http/tests/inspector/timeline-test.js
@@ -34,6 +34,30 @@ InspectorTest.timelinePropertyFormatters = {
thread: "formatAsTypeName"
};
+InspectorTest.InvalidationFormatters = {
+ _tracingEvent: "skip",
+ cause: "formatAsInvalidationCause",
+ frame: "skip",
+ invalidatedSelectorId: "skip",
+ invalidationList: "skip",
+ invalidationSet: "skip",
+ linkedRecalcStyleEvent: "skip",
+ linkedLayoutEvent: "skip",
+ nodeId: "skip",
+ paintId: "skip",
+ startTime: "skip",
+};
+
+InspectorTest.formatters.formatAsInvalidationCause = function(cause)
+{
+ if (!cause)
+ return "<undefined>";
+ var stackTrace;
+ if (cause.stackTrace && cause.stackTrace.length)
+ stackTrace = InspectorTest.formatters.formatAsURL(cause.stackTrace[0].url) + ":" + cause.stackTrace[0].lineNumber;
+ return "{reason: " + cause.reason + ", stackTrace: " + stackTrace + "}";
+}
+
InspectorTest.switchTimelineToWaterfallMode = function()
{
if (WebInspector.panels.timeline._flameChartToggleButton.toggled())
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-enum-stability-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698