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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-with-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-layout-with-invalidations.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-with-invalidations.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-with-invalidations.html
deleted file mode 100644
index 02ff6c3b4427c2c8649feb2bc347f91a57ecf4c0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout-with-invalidations.html
+++ /dev/null
@@ -1,72 +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() {
- document.getElementById("testElement").style.width = "100px";
- var forceLayout1 = document.body.offsetTop;
- document.getElementById("testElement").style.width = "110px";
- var forceLayout2 = document.body.offsetTop;
- if (window.testRunner)
- testRunner.layoutAndPaintAsyncThen(callback);
- });
-}
-
-function updateSubframeAndDisplay(callback)
-{
- requestAnimationFrame(function() {
- frames[0].document.body.children[0].style.width = "10px";
- var forceLayout1 = frames[0].document.body.offsetTop;
- frames[0].document.body.children[0].style.width = "20px";
- var forceLayout2 = frames[0].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.runTestSuite([
- function testLocalFrame(next)
- {
- InspectorTest.invokeAsyncWithTimeline("display", function() {
- var firstLayoutRecord = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.Layout);
- InspectorTest.addArray(firstLayoutRecord._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "first layout invalidations");
-
- var secondLayoutRecord = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.Layout, 1);
- InspectorTest.addArray(secondLayoutRecord._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "second layout invalidations");
-
- next();
- });
- },
-
- function testSubframe(next)
- {
- InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", function() {
- var firstLayoutRecord = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.Layout);
- InspectorTest.addArray(firstLayoutRecord._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "first layout invalidations");
-
- var secondLayoutRecord = InspectorTest.findTimelineRecord(WebInspector.TimelineModel.RecordType.Layout, 1);
- InspectorTest.addArray(secondLayoutRecord._event.invalidationTrackingEvents, InspectorTest.InvalidationFormatters, "", "second layout invalidations");
-
- next();
- });
- }
- ]);
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests the Timeline API instrumentation of layout events with invalidations.</p>
-<div id="outerTestElement" style="display: inline-block;"><div id="testElement">PASS</div></div>
-<iframe src="resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698