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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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
OLDNEW
1 if (window.GCController) 1 if (window.GCController)
2 GCController.collectAll(); 2 GCController.collectAll();
3 var initialize_InspectorTest = function() { 3 var initialize_InspectorTest = function() {
4 4
5 var results = []; 5 var results = [];
6 6
7 function consoleOutputHook(messageType) 7 function consoleOutputHook(messageType)
8 { 8 {
9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
10 } 10 }
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent()); 362 InspectorTest.addResult(expandedSubstring + " " + treeElement.listItemElemen t.deepTextContent());
363 363
364 for (var i = 0; i < treeElement.childCount(); ++i) { 364 for (var i = 0; i < treeElement.childCount(); ++i) {
365 var property = treeElement.childAt(i).property; 365 var property = treeElement.childAt(i).property;
366 var key = property.name; 366 var key = property.name;
367 var value = property.value._description; 367 var value = property.value._description;
368 InspectorTest.addResult(" " + key + ": " + value); 368 InspectorTest.addResult(" " + key + ": " + value);
369 } 369 }
370 } 370 }
371 371
372 InspectorTest.expandAndDumpEventListeners = function(eventListenersView, updateC allback, callback) 372 InspectorTest.expandAndDumpEventListeners = function(eventListenersView, callbac k)
373 { 373 {
374 InspectorTest.addSniffer(WebInspector.EventListenersView.prototype, "_eventL istenersArrivedForTest", listenersArrived); 374 InspectorTest.addSniffer(WebInspector.EventListenersView.prototype, "_eventL istenersArrivedForTest", listenersArrived);
375 375
376 if (updateCallback)
377 updateCallback();
378
379 function listenersArrived() 376 function listenersArrived()
380 { 377 {
381 var listenerTypes = eventListenersView._treeOutline.rootElement().childr en(); 378 var listenerTypes = eventListenersView._treeOutline.rootElement().childr en();
382 for (var i = 0; i < listenerTypes.length; ++i) { 379 for (var i = 0; i < listenerTypes.length; ++i) {
383 listenerTypes[i].expand(); 380 listenerTypes[i].expand();
384 var listenerItems = listenerTypes[i].children(); 381 var listenerItems = listenerTypes[i].children();
385 for (var j = 0; j < listenerItems.length; ++j) 382 for (var j = 0; j < listenerItems.length; ++j)
386 listenerItems[j].expand(); 383 listenerItems[j].expand();
387 } 384 }
388 InspectorTest.deprecatedRunAfterPendingDispatches(objectsExpanded); 385 InspectorTest.deprecatedRunAfterPendingDispatches(objectsExpanded);
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 _output("[page] " + text); 1195 _output("[page] " + text);
1199 } 1196 }
1200 1197
1201 function _output(result) 1198 function _output(result)
1202 { 1199 {
1203 if (!outputElement) 1200 if (!outputElement)
1204 createOutputElement(); 1201 createOutputElement();
1205 outputElement.appendChild(document.createTextNode(result)); 1202 outputElement.appendChild(document.createTextNode(result));
1206 outputElement.appendChild(document.createElement("br")); 1203 outputElement.appendChild(document.createElement("br"));
1207 } 1204 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698