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

Unified Diff: LayoutTests/inspector/layers/tracing-layer-tree.html

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: avoid keep stale model in TimelineFrameModel Created 6 years, 1 month 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: LayoutTests/inspector/layers/tracing-layer-tree.html
diff --git a/LayoutTests/inspector/layers/tracing-layer-tree.html b/LayoutTests/inspector/layers/tracing-layer-tree.html
deleted file mode 100644
index b90e11223fd91e03111cf915c5c10b24e2e45003..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/layers/tracing-layer-tree.html
+++ /dev/null
@@ -1,72 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-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);
-
- if (!window.testRunner) {
- callback();
- return;
- }
- testRunner.displayAsyncThen(callback);
-}
-
-function test()
-{
- InspectorTest.invokeWithTracing("doActions", onTracingComplete);
-
- var target = /** @type {!WebInspector.Target} */ (WebInspector.targetManager.mainTarget());
- var layerTree = new WebInspector.TracingLayerTree(target);
-
- function onTracingComplete()
- {
- var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents();
- for (var i = events.length - 1; i >= 0; --i) {
- if (events[i].phase === WebInspector.TracingModel.Phase.SnapshotObject && events[i].name === "cc::LayerTreeHostImpl") {
- var rootLayer = events[i].args["snapshot"]["active_tree"]["root_layer"];
- dumpLayerTreeSnapshot(rootLayer);
- return;
- }
- }
- InspectorTest.addResult("FAIL: cc::LayerTreeHostImpl snapshot not found");
- InspectorTest.completeTest();
- }
-
- function dumpLayerTreeSnapshot(rootLayer)
- {
- layerTree.setLayers(rootLayer, onLayersSet);
- }
-
- function onLayersSet()
- {
- 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>
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | LayoutTests/inspector/layers/tracing-layer-tree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698