| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(); |
| OLD | NEW |