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

Unified Diff: LayoutTests/inspector/tracing/timeline-grouped-invalidations.html

Issue 1048663002: [invalidations] Convert invalidations to use TreeOutline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix failing test to to shadowRoot.getElementsByClassName going away Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-grouped-invalidations-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
diff --git a/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html b/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
index 7fb36eb6411ef09fbc4b751f525378dfd2c4f4ce..e82bbb85089f494bfc36ac6a877a81a0a3156a0c 100644
--- a/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
+++ b/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
@@ -31,15 +31,19 @@ function test()
var target = InspectorTest.timelineModel().target();
var contentHelper = new WebInspector.TimelineDetailsContentHelper(target, linkifier, null, true);
WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), target, contentHelper);
- var invalidationGroups = contentHelper.element.getElementsByClassName("invalidations-group");
-
- InspectorTest.assertEquals(invalidationGroups.length, 2);
- InspectorTest.assertEquals(invalidationGroups[0].textContent,
- "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:12");
- InspectorTest.assertEquals(invalidationGroups[1].textContent,
- "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:13");
+ var invalidationsTree = contentHelper.element.getElementsByClassName("invalidations-tree")[0];
+ var invalidations = invalidationsTree.shadowRoot.textContent;
+ checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:12");
+ checkStringContains(invalidations, "Inline CSS style declaration was mutated for [ DIV class='testElement' ], [ DIV class='testElement' ], and 2 others. (anonymous function) @ timeline-grouped-invalidations.html:13");
InspectorTest.completeTest();
});
+
+ function checkStringContains(string, contains)
+ {
+ var doesContain = string.indexOf(contains) >= 0;
+ InspectorTest.check(doesContain, contains + " should be present in " + string);
+ InspectorTest.addResult("PASS - record contained " + contains);
+ }
}
</script>
</head>
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/timeline-grouped-invalidations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698