| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 } | 708 } |
| 709 | 709 |
| 710 WebInspector.targetManager.observeTargets({ | 710 WebInspector.targetManager.observeTargets({ |
| 711 targetAdded: function(target) | 711 targetAdded: function(target) |
| 712 { | 712 { |
| 713 if (InspectorTest.CSSAgent) | 713 if (InspectorTest.CSSAgent) |
| 714 return; | 714 return; |
| 715 InspectorTest.CSSAgent = target.cssAgent(); | 715 InspectorTest.CSSAgent = target.cssAgent(); |
| 716 InspectorTest.CanvasAgent = target.canvasAgent(); | 716 InspectorTest.CanvasAgent = target.canvasAgent(); |
| 717 InspectorTest.ConsoleAgent = target.consoleAgent(); | 717 InspectorTest.ConsoleAgent = target.consoleAgent(); |
| 718 InspectorTest.DeviceOrientationAgent = target.deviceOrientationAgent(); |
| 718 InspectorTest.DOMAgent = target.domAgent(); | 719 InspectorTest.DOMAgent = target.domAgent(); |
| 719 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); | 720 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); |
| 720 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 721 InspectorTest.DebuggerAgent = target.debuggerAgent(); |
| 721 InspectorTest.EmulationAgent = target.emulationAgent(); | 722 InspectorTest.EmulationAgent = target.emulationAgent(); |
| 722 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 723 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); |
| 723 InspectorTest.InspectorAgent = target.inspectorAgent(); | 724 InspectorTest.InspectorAgent = target.inspectorAgent(); |
| 724 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); | 725 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); |
| 725 InspectorTest.NetworkAgent = target.networkAgent(); | 726 InspectorTest.NetworkAgent = target.networkAgent(); |
| 726 InspectorTest.PageAgent = target.pageAgent(); | 727 InspectorTest.PageAgent = target.pageAgent(); |
| 727 InspectorTest.ProfilerAgent = target.profilerAgent(); | 728 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 _output("[page] " + text); | 961 _output("[page] " + text); |
| 961 } | 962 } |
| 962 | 963 |
| 963 function _output(result) | 964 function _output(result) |
| 964 { | 965 { |
| 965 if (!outputElement) | 966 if (!outputElement) |
| 966 createOutputElement(); | 967 createOutputElement(); |
| 967 outputElement.appendChild(document.createTextNode(result)); | 968 outputElement.appendChild(document.createTextNode(result)); |
| 968 outputElement.appendChild(document.createElement("br")); | 969 outputElement.appendChild(document.createElement("br")); |
| 969 } | 970 } |
| OLD | NEW |