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

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

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (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
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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 } 605 }
606 } 606 }
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)
616 WebInspector.consoleModel = target.consoleModel;
615 }, 617 },
616 618
617 targetRemoved: function(target) { } 619 targetRemoved: function(target) { }
618 }); 620 });
619 621
620 }; // initialize_InspectorTest 622 }; // initialize_InspectorTest
621 623
622 var initializeCallId = 0; 624 var initializeCallId = 0;
623 var runTestCallId = 1; 625 var runTestCallId = 1;
624 var completeTestCallId = 2; 626 var completeTestCallId = 2;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 evaluateInWebInspector: function(callId, script) 834 evaluateInWebInspector: function(callId, script)
833 { 835 {
834 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* "); 836 window.opener.postMessage(["evaluateInWebInspector", callId, script], "* ");
835 }, 837 },
836 838
837 display: function() { } 839 display: function() { }
838 } 840 }
839 841
840 if (!window.testRunner && window.opener) 842 if (!window.testRunner && window.opener)
841 window.testRunner = new StandaloneTestRunnerStub(); 843 window.testRunner = new StandaloneTestRunnerStub();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698