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: LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html

Issue 481403002: DevTools: move tracing based Timeline out of experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated inspector/timeline/timeline-coalescing.html Created 6 years, 4 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: LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
diff --git a/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html b/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
deleted file mode 100644
index 82ee9c3c8557a05dc3d6072ea7f585ed49456d8c..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html
+++ /dev/null
@@ -1,80 +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>
-<style>
-.layer {
- width: 100px;
- height: 100px;
- -webkit-transform: translateZ(10px);
-}
-</style>
-<script>
-
-function addLayer()
-{
- var element = document.createElement("div");
- element.className = "layer";
- document.body.appendChild(element);
-}
-
-function pageStep0(doneCallback)
-{
- requestAnimationFrame(pageStep1.bind(this, doneCallback));
-}
-
-function pageStep1(doneCallback)
-{
- addLayer();
- requestAnimationFrame(pageStep2.bind(this, doneCallback));
-}
-
-function pageStep2(doneCallback)
-{
- addLayer();
- requestAnimationFrame(doneCallback);
-}
-
-function test()
-{
- InspectorTest.invokeAsyncWithTimeline("pageStep0", onTimelineStopped);
-
- function onTimelineStopped()
- {
- InspectorTest.printTimelineRecords(null, loadSnapshot);
- }
-
- var pendingEventCount = 0;
- function loadSnapshot(record)
- {
- if (record.type() !== WebInspector.TimelineModel.RecordType.UpdateLayerTree)
- return;
- // Some updates may not produce new layer tree snapshot
- if (!record.data()["layerTree"])
- return;
- ++pendingEventCount;
- var layerTree = new WebInspector.AgentLayerTree(WebInspector.targetManager.mainTarget());
- layerTree.setLayers(record.data()["layerTree"], onLayersSet.bind(null, layerTree));
- }
-
- function onLayersSet(layerTree)
- {
- InspectorTest.layerTreeModel.setLayerTree(layerTree);
- InspectorTest.addResult("Layer tree dump:");
- InspectorTest.dumpLayerTree();
- if (--pendingEventCount)
- return;
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests the Timeline API instrumentation of a Layout event
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698