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

Unified Diff: LayoutTests/inspector/timeline/timeline-layer-tree-snapshot.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html 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/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 69a460f29e65d6bab8c0f15e85a6a044944c6922..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;
- 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