OLD | NEW |
1 function initialize_layersTest() | 1 function initialize_layersTest() |
2 { | 2 { |
3 | 3 |
4 var layers; | 4 var layers; |
5 var layerTreeChangeCallback; | 5 var layerTreeChangeCallback; |
6 | 6 |
7 InspectorTest.step = function(test) | 7 InspectorTest.step = function(test) |
8 { | 8 { |
9 InspectorTest.sendCommand(test.command, test.parameters, function(messageObj
ect) { | 9 InspectorTest.sendCommand(test.command, test.parameters, function(messageObj
ect) { |
10 if (messageObject.hasOwnProperty("error")) { | 10 if (messageObject.hasOwnProperty("error")) { |
(...skipping 28 matching lines...) Expand all Loading... |
39 return; | 39 return; |
40 } | 40 } |
41 InspectorTest.eventHandler["LayerTree.layerTreeDidChange"] = onLayerTreeChan
ged; | 41 InspectorTest.eventHandler["LayerTree.layerTreeDidChange"] = onLayerTreeChan
ged; |
42 InspectorTest.setLayerTreeChangeCallback(callback); | 42 InspectorTest.setLayerTreeChangeCallback(callback); |
43 InspectorTest.sendCommand("DOM.getDocument", {}, function() { | 43 InspectorTest.sendCommand("DOM.getDocument", {}, function() { |
44 InspectorTest.sendCommand("LayerTree.enable", {}, function() { }); | 44 InspectorTest.sendCommand("LayerTree.enable", {}, function() { }); |
45 }); | 45 }); |
46 } | 46 } |
47 | 47 |
48 } | 48 } |
OLD | NEW |