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> |