OLD | NEW |
1 var initialize_InspectorTest = function() { | 1 var initialize_InspectorTest = function() { |
2 | 2 |
3 var results = []; | 3 var results = []; |
4 | 4 |
5 function consoleOutputHook(messageType) | 5 function consoleOutputHook(messageType) |
6 { | 6 { |
7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
8 } | 8 } |
9 | 9 |
10 window._originalConsoleLog = console.log.bind(console); | 10 window._originalConsoleLog = console.log.bind(console); |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); | 809 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); |
810 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 810 InspectorTest.DebuggerAgent = target.debuggerAgent(); |
811 InspectorTest.EmulationAgent = target.emulationAgent(); | 811 InspectorTest.EmulationAgent = target.emulationAgent(); |
812 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 812 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); |
813 InspectorTest.InspectorAgent = target.inspectorAgent(); | 813 InspectorTest.InspectorAgent = target.inspectorAgent(); |
814 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); | 814 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); |
815 InspectorTest.NetworkAgent = target.networkAgent(); | 815 InspectorTest.NetworkAgent = target.networkAgent(); |
816 InspectorTest.PageAgent = target.pageAgent(); | 816 InspectorTest.PageAgent = target.pageAgent(); |
817 InspectorTest.ProfilerAgent = target.profilerAgent(); | 817 InspectorTest.ProfilerAgent = target.profilerAgent(); |
818 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 818 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 819 InspectorTest.ScreenOrientationAgent = target.screenOrientationAgent(); |
819 InspectorTest.WorkerAgent = target.workerAgent(); | 820 InspectorTest.WorkerAgent = target.workerAgent(); |
820 | 821 |
821 InspectorTest.consoleModel = target.consoleModel; | 822 InspectorTest.consoleModel = target.consoleModel; |
822 InspectorTest.networkManager = target.networkManager; | 823 InspectorTest.networkManager = target.networkManager; |
823 InspectorTest.resourceTreeModel = target.resourceTreeModel; | 824 InspectorTest.resourceTreeModel = target.resourceTreeModel; |
824 InspectorTest.networkLog = target.networkLog; | 825 InspectorTest.networkLog = target.networkLog; |
825 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); | 826 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); |
826 InspectorTest.runtimeModel = target.runtimeModel; | 827 InspectorTest.runtimeModel = target.runtimeModel; |
827 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); | 828 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); |
828 InspectorTest.cssModel = WebInspector.CSSStyleModel.fromTarget(target); | 829 InspectorTest.cssModel = WebInspector.CSSStyleModel.fromTarget(target); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 _output("[page] " + text); | 1062 _output("[page] " + text); |
1062 } | 1063 } |
1063 | 1064 |
1064 function _output(result) | 1065 function _output(result) |
1065 { | 1066 { |
1066 if (!outputElement) | 1067 if (!outputElement) |
1067 createOutputElement(); | 1068 createOutputElement(); |
1068 outputElement.appendChild(document.createTextNode(result)); | 1069 outputElement.appendChild(document.createTextNode(result)); |
1069 outputElement.appendChild(document.createElement("br")); | 1070 outputElement.appendChild(document.createElement("br")); |
1070 } | 1071 } |
OLD | NEW |