Index: third_party/WebKit/LayoutTests/inspector-protocol/layers/layer-protocol-test.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/layers/layer-protocol-test.js b/third_party/WebKit/LayoutTests/inspector-protocol/layers/layer-protocol-test.js |
deleted file mode 100644 |
index 16454eaeafb09ba49f5ac06cf39682dfd07d9ebe..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/layers/layer-protocol-test.js |
+++ /dev/null |
@@ -1,48 +0,0 @@ |
-function initialize_layersTest() |
-{ |
- |
-var layers; |
-var layerTreeChangeCallback; |
- |
-InspectorTest.step = function(test) |
-{ |
- InspectorTest.sendCommand(test.command, test.parameters, function(messageObject) { |
- if (messageObject.hasOwnProperty("error")) { |
- InspectorTest.log("FAIL: " + messageObject.error.message + " (" + messageObject.error.code + ")"); |
- InspectorTest.completeTest(); |
- return; |
- } |
- if (test.callback) |
- test.callback(messageObject.result); |
- }); |
-}; |
- |
-function onLayerTreeChanged(message) |
-{ |
- layers = message.params.layers; |
- if (layerTreeChangeCallback) { |
- var callback = layerTreeChangeCallback; |
- layerTreeChangeCallback = null; |
- callback(layers); |
- } |
-} |
- |
-InspectorTest.setLayerTreeChangeCallback = function(callback) |
-{ |
- layerTreeChangeCallback = callback; |
-} |
- |
-InspectorTest.enableLayerTreeAgent = function(callback) |
-{ |
- if (layers) { |
- callback(layers); |
- return; |
- } |
- InspectorTest.eventHandler["LayerTree.layerTreeDidChange"] = onLayerTreeChanged; |
- InspectorTest.setLayerTreeChangeCallback(callback); |
- InspectorTest.sendCommand("DOM.getDocument", {}, function() { |
- InspectorTest.sendCommand("LayerTree.enable", {}, function() { }); |
- }); |
-} |
- |
-} |