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

Side by Side Diff: LayoutTests/http/tests/inspector/elements-test.js

Issue 11841005: Merge 138460 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/styles/removed-rule-crash.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/styles/removed-rule-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698