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

Unified Diff: third_party/WebKit/LayoutTests/inspector/tracing/layer-tree.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/layer-tree.html
diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/layer-tree.html b/third_party/WebKit/LayoutTests/inspector/tracing/layer-tree.html
deleted file mode 100644
index 79e32b3a68f5bed49c442fbac5bf14f6880ff6c8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector/tracing/layer-tree.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../http/tests/inspector/timeline-test.js"></script>
-<script src="../../http/tests/inspector/layers-test.js"></script>
-<script src="../tracing-test.js"></script>
-
-<script>
-function doActions(callback)
-{
- var div = document.createElement("div");
- div.id = "b4";
- document.getElementById("a").appendChild(div);
-
- // Make sure to force commit, otherwise some owner nodes will be missing.
- var style = document.createElement("style");
- style.textContent = ".layer { transform: translateZ(10px); opacity: 0.8; }";
- document.head.appendChild(style);
- generateFrames(3, callback);
-}
-
-function test()
-{
- WebInspector.panels.timeline._captureLayersAndPicturesSetting.set(true);
-
- InspectorTest.invokeAsyncWithTimeline("doActions", step1);
- function step1()
- {
- var frames = InspectorTest.timelineFrameModel().frames();
- var lastFrame = InspectorTest.timelineFrameModel().frames().peekLast();
- var deferredLayerTree = lastFrame.layerTree;
- deferredLayerTree.resolve(InspectorTest.safeWrap(layerTreeResolved));
- }
-
- function layerTreeResolved(layerTree)
- {
- InspectorTest.layerTreeModel().setLayerTree(layerTree);
- InspectorTest.dumpLayerTree();
- InspectorTest.completeTest();
- }
-}
-</script>
-
-<body onload="runTestAfterDisplay()">
-Tests that LayerTreeModel successfully imports layers from a trace.
-</p>
-<div id="a" style="width: 200px; height: 200px" class="layer">
- <div class="layer" id="b1" style="width: 150px; height: 100px"></div>
- <div id="b2" class="layer" style="width: 140px; height: 110px">
- <div id="c" class="layer" style="width: 100px; height: 90px"></div>
- </div>
- <div id="b3" class="layer" style="width: 140px; height: 110px"></div>
-</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698