| OLD | NEW |
| 1 function initialize_LayerTreeTests() | 1 function initialize_LayerTreeTests() |
| 2 { | 2 { |
| 3 // FIXME: remove once out of experimental. | 3 // FIXME: remove once out of experimental. |
| 4 runtime.registerModule("layers"); | 4 InspectorTest.registerModule("layers"); |
| 5 var extensions = runtime.extensions(WebInspector.Panel).forEach(function(ext
ension) { | 5 var extensions = runtime.extensions(WebInspector.Panel).forEach(function(ext
ension) { |
| 6 if (extension.module().name() === "layers") | 6 if (extension.module().name() === "layers") |
| 7 WebInspector.inspectorView.addPanel(new WebInspector.RuntimeExtensio
nPanelDescriptor(extension)); | 7 WebInspector.inspectorView.addPanel(new WebInspector.RuntimeExtensio
nPanelDescriptor(extension)); |
| 8 }); | 8 }); |
| 9 InspectorTest.layerTreeModel = WebInspector.inspectorView.panel("layers")._m
odel; | 9 InspectorTest.layerTreeModel = WebInspector.inspectorView.panel("layers")._m
odel; |
| 10 InspectorTest.layers3DView = WebInspector.inspectorView.panel("layers")._lay
ers3DView; | 10 InspectorTest.layers3DView = WebInspector.inspectorView.panel("layers")._lay
ers3DView; |
| 11 | 11 |
| 12 InspectorTest.labelForLayer = function(layer) | 12 InspectorTest.labelForLayer = function(layer) |
| 13 { | 13 { |
| 14 var node = layer.nodeForSelfOrAncestor(); | 14 var node = layer.nodeForSelfOrAncestor(); |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 }; | 131 }; |
| 132 if (eventType === "mouseout") { | 132 if (eventType === "mouseout") { |
| 133 eventArguments.screenX = 0; | 133 eventArguments.screenX = 0; |
| 134 eventArguments.screenY = 0; | 134 eventArguments.screenY = 0; |
| 135 eventArguments.clientX = 0; | 135 eventArguments.clientX = 0; |
| 136 eventArguments.clientY = 0; | 136 eventArguments.clientY = 0; |
| 137 } | 137 } |
| 138 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); | 138 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); |
| 139 } | 139 } |
| 140 } | 140 } |
| OLD | NEW |