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

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

Issue 2678203002: DevTools: extract event_listeners module (Closed)
Patch Set: fix - earlier ps didn't include all changes Created 3 years, 10 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 | third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 if (window.GCController) 1 if (window.GCController)
2 GCController.collectAll(); 2 GCController.collectAll();
3 3
4 var initialize_InspectorTest = function() { 4 var initialize_InspectorTest = function() {
5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true;
6 var results = []; 6 var results = [];
7 7
8 function consoleOutputHook(messageType) 8 function consoleOutputHook(messageType)
9 { 9 {
10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 InspectorTest.addResult("== " + listenerItems[j].eventListener() .listenerType()); 348 InspectorTest.addResult("== " + listenerItems[j].eventListener() .listenerType());
349 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); 349 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]);
350 } 350 }
351 } 351 }
352 callback(); 352 callback();
353 } 353 }
354 354
355 if (force) 355 if (force)
356 listenersArrived(); 356 listenersArrived();
357 else 357 else
358 InspectorTest.addSniffer(Components.EventListenersView.prototype, "_even tListenersArrivedForTest", listenersArrived); 358 InspectorTest.addSniffer(EventListeners.EventListenersView.prototype, "_ eventListenersArrivedForTest", listenersArrived);
359 } 359 }
360 360
361 InspectorTest.dumpNavigatorView = function(navigatorView, dumpIcons) 361 InspectorTest.dumpNavigatorView = function(navigatorView, dumpIcons)
362 { 362 {
363 dumpNavigatorTreeOutline(navigatorView._scriptsTree); 363 dumpNavigatorTreeOutline(navigatorView._scriptsTree);
364 364
365 function dumpNavigatorTreeElement(prefix, treeElement) 365 function dumpNavigatorTreeElement(prefix, treeElement)
366 { 366 {
367 var titleText = ''; 367 var titleText = '';
368 if (treeElement._leadingIconsElement && dumpIcons) { 368 if (treeElement._leadingIconsElement && dumpIcons) {
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 _output("[page] " + text); 1226 _output("[page] " + text);
1227 } 1227 }
1228 1228
1229 function _output(result) 1229 function _output(result)
1230 { 1230 {
1231 if (!outputElement) 1231 if (!outputElement)
1232 createOutputElement(); 1232 createOutputElement();
1233 outputElement.appendChild(document.createTextNode(result)); 1233 outputElement.appendChild(document.createTextNode(result));
1234 outputElement.appendChild(document.createElement("br")); 1234 outputElement.appendChild(document.createElement("br"));
1235 } 1235 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698