OLD | NEW |
1 var initialize_ElementTest = function() { | 1 var initialize_ElementTest = function() { |
2 | 2 |
3 InspectorTest.findNode = function(matchFunction, callback) | 3 InspectorTest.findNode = function(matchFunction, callback) |
4 { | 4 { |
5 callback = InspectorTest.safeWrap(callback); | 5 callback = InspectorTest.safeWrap(callback); |
6 var result = null; | 6 var result = null; |
7 var topLevelChildrenRequested = false; | 7 var topLevelChildrenRequested = false; |
8 var pendingRequests = 0; | 8 var pendingRequests = 0; |
9 function processChildren(topLevel, children) | 9 function processChildren(topLevel, children) |
10 { | 10 { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 InspectorTest.addResult(""); | 170 InspectorTest.addResult(""); |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
174 InspectorTest.toggleStyleProperty = function(propertyName, checked) | 174 InspectorTest.toggleStyleProperty = function(propertyName, checked) |
175 { | 175 { |
176 var treeItem = InspectorTest.getElementStylePropertyTreeItem(propertyName); | 176 var treeItem = InspectorTest.getElementStylePropertyTreeItem(propertyName); |
177 treeItem.toggleEnabled({ target: { checked: checked }, consume: function() {
} }); | 177 treeItem.toggleEnabled({ target: { checked: checked }, consume: function() {
} }); |
178 } | 178 } |
179 | 179 |
| 180 InspectorTest.toggleMatchedStyleProperty = function(propertyName, checked) |
| 181 { |
| 182 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem(propertyName); |
| 183 treeItem.toggleEnabled({ target: { checked: checked }, consume: function() {
} }); |
| 184 } |
| 185 |
180 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback) | 186 InspectorTest.expandAndDumpSelectedElementEventListeners = function(callback) |
181 { | 187 { |
182 InspectorTest.expandSelectedElementEventListeners(function() { | 188 InspectorTest.expandSelectedElementEventListeners(function() { |
183 InspectorTest.dumpSelectedElementEventListeners(callback); | 189 InspectorTest.dumpSelectedElementEventListeners(callback); |
184 }); | 190 }); |
185 } | 191 } |
186 | 192 |
187 InspectorTest.expandSelectedElementEventListeners = function(callback) | 193 InspectorTest.expandSelectedElementEventListeners = function(callback) |
188 { | 194 { |
189 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; | 195 var sidebarPane = WebInspector.panels.elements.sidebarPanes.eventListeners; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 { | 595 { |
590 var rectNames = ["margin", "border", "padding", "content"]; | 596 var rectNames = ["margin", "border", "padding", "content"]; |
591 var rects = window.internals.inspectorHighlightRects(document); | 597 var rects = window.internals.inspectorHighlightRects(document); |
592 for (var i = 0; i < rects.length; i++) | 598 for (var i = 0; i < rects.length; i++) |
593 { | 599 { |
594 var rectName = (i < rectNames.length ? rectNames[i] : "untitled"); | 600 var rectName = (i < rectNames.length ? rectNames[i] : "untitled"); |
595 var rect = rects.item(i); | 601 var rect = rects.item(i); |
596 output(rectName + " rect is " + rect.width + " x " + rect.height + " at
(" + rect.left + ", " + rect.top + ")"); | 602 output(rectName + " rect is " + rect.width + " x " + rect.height + " at
(" + rect.left + ", " + rect.top + ")"); |
597 } | 603 } |
598 } | 604 } |
OLD | NEW |