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

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

Issue 400633003: DevTools: introduce multitarget model listeners (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/network-uisourcecode-provider.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_InspectorTest = function() { 1 var initialize_InspectorTest = function() {
2 2
3 var results = []; 3 var results = [];
4 var resultsSynchronized = false; 4 var resultsSynchronized = false;
5 5
6 function consoleOutputHook(messageType) 6 function consoleOutputHook(messageType)
7 { 7 {
8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 8 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
9 } 9 }
10 10
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 607
608 WebInspector.TempFile = InspectorTest.TempFileMock; 608 WebInspector.TempFile = InspectorTest.TempFileMock;
609 609
610 WebInspector.targetManager.observeTargets({ 610 WebInspector.targetManager.observeTargets({
611 targetAdded: function(target) 611 targetAdded: function(target)
612 { 612 {
613 if (!WebInspector.domModel) 613 if (!WebInspector.domModel)
614 WebInspector.domModel = target.domModel; 614 WebInspector.domModel = target.domModel;
615 if (!WebInspector.consoleModel) 615 if (!WebInspector.consoleModel)
616 WebInspector.consoleModel = target.consoleModel; 616 WebInspector.consoleModel = target.consoleModel;
617 if (!WebInspector.networkManager)
618 WebInspector.networkManager = target.networkManager;
617 }, 619 },
618 620
619 targetRemoved: function(target) { } 621 targetRemoved: function(target) { }
620 }); 622 });
621 623
622 }; // initialize_InspectorTest 624 }; // initialize_InspectorTest
623 625
624 var initializeCallId = 0; 626 var initializeCallId = 0;
625 var runTestCallId = 1; 627 var runTestCallId = 1;
626 var completeTestCallId = 2; 628 var completeTestCallId = 2;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 evaluateInWebInspector: function(callId, script) 836 evaluateInWebInspector: function(callId, script)
835 { 837 {
836 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* "); 838 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* ");
837 }, 839 },
838 840
839 display: function() { } 841 display: function() { }
840 } 842 }
841 843
842 if (!window.testRunner && window.opener) 844 if (!window.testRunner && window.opener)
843 window.testRunner = new StandaloneTestRunnerStub(); 845 window.testRunner = new StandaloneTestRunnerStub();
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/network-uisourcecode-provider.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698