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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint-and-multiple-style-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-paint-and-multiple-style-invalidations.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint-and-multiple-style-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint-and-multiple-style-invalidations.html
deleted file mode 100644
index dbc8e5ce6649bacb4788220285318ccd3dbf1888..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint-and-multiple-style-invalidations.html
+++ /dev/null
@@ -1,61 +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 multipleStyleRecalcsAndDisplay(callback)
-{
- requestAnimationFrame(function() {
- document.getElementById("testElementOne").className = "red";
- var forceStyleRecalc1 = document.body.offsetTop;
- document.getElementById("testElementOne").className = "snow";
- var forceStyleRecalc2 = document.body.offsetTop;
- 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("multipleStyleRecalcsAndDisplay", testMultipleStyleRecalcs);
-
- function testMultipleStyleRecalcs()
- {
- var firstRecalc = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.UpdateLayoutTree, 0);
- InspectorTest.addArray(firstRecalc._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "first style recalc");
- var secondRecalc = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.UpdateLayoutTree, 1);
- InspectorTest.addArray(secondRecalc._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "second style recalc");
- var firstPaint = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.Paint, 0);
- InspectorTest.addArray(firstPaint._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "first paint");
-
- var thirdRecalc = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.UpdateLayoutTree, 2);
- InspectorTest.assertTrue(thirdRecalc === undefined, "There should be no additional style recalc records.");
- var secondPaint = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.Paint, 1);
- InspectorTest.assertTrue(secondPaint === undefined, "There should be no additional paint records.");
- InspectorTest.completeTest();
- }
-}
-</script>
-<style>
- .testHolder > .red { background-color: red; }
- .testHolder > .green { background-color: green; }
- .testHolder > .blue { background-color: blue; }
- .testHolder > .snow { background-color: snow; }
- .testHolder > .red .dummy { }
- .testHolder > .green .dummy { }
- .testHolder > .blue .dummy { }
- .testHolder > .snow .dummy { }
-</style>
-</head>
-<body onload="runTest()">
-<p>Tests the Timeline API instrumentation of multiple style recalc invalidations and ensures they are all collected on the paint event.</p>
-<div class="testHolder">
-<div id="testElementOne">PASS</div><div id="testElementTwo">PASS</div><div id="testElementThree">PASS</div>
-</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698