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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/layers/layer-protocol-test.js

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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: 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() { });
- });
-}
-
-}

Powered by Google App Engine
This is Rietveld 408576698