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

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

Issue 2145873002: [DevTools] Split inspector/tracing into subdirectories to speed things up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
deleted file mode 100644
index 9ff08066d67e56677916f937fe2b3b63efce1aef..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-grouped-invalidations.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script>
-function display(callback)
-{
- requestAnimationFrame(function() {
- var testElements = document.body.getElementsByClassName("testElement");
- for (var i = 0; i < testElements.length; i++) {
- testElements[i].style.color = "red";
- testElements[i].style.backgroundColor = "blue";
- }
- if (window.testRunner)
- testRunner.layoutAndPaintAsyncThen(callback);
- });
-}
-
-function test()
-{
- var currentPanel = WebInspector.inspectorView.currentPanel();
- InspectorTest.assertEquals(currentPanel._panelName, "timeline", "Current panel should be the timeline.");
- Runtime.experiments.enableForTest("timelineInvalidationTracking");
-
- InspectorTest.invokeAsyncWithTimeline("display", function() {
- var record = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.Paint);
- InspectorTest.addArray(record._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "paint invalidations");
-
- var linkifier = new WebInspector.Linkifier();
- var target = InspectorTest.timelineModel().target();
- var contentHelper = new WebInspector.TimelineDetailsContentHelper(target, linkifier, true);
- WebInspector.TimelineUIUtils._generateCauses(record.traceEvent(), target, null, contentHelper);
- 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>
-<body onload="runTest()">
-<p>Tests grouped invalidations on the timeline.</p>
-<div class="testElement">P</div><div class="testElement">A</div>
-<div class="testElement">S</div><div class="testElement">S</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698