| 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 | 947 |
| 948 var testPath = WebInspector.settings.createSetting("testPath", "").get()
; | 948 var testPath = WebInspector.settings.createSetting("testPath", "").get()
; |
| 949 | 949 |
| 950 // 2. Show initial panel based on test path. | 950 // 2. Show initial panel based on test path. |
| 951 var initialPanelByFolder = { | 951 var initialPanelByFolder = { |
| 952 "audits": "audits", | 952 "audits": "audits", |
| 953 "console": "console", | 953 "console": "console", |
| 954 "elements": "elements", | 954 "elements": "elements", |
| 955 "editor": "sources", | 955 "editor": "sources", |
| 956 "layers": "layers", | 956 "layers": "layers", |
| 957 "network": "network", |
| 957 "profiler": "profiles", | 958 "profiler": "profiles", |
| 958 "resource-tree": "resources", | 959 "resource-tree": "resources", |
| 959 "search": "sources", | 960 "search": "sources", |
| 960 "service-workers": "resources", | 961 "service-workers": "resources", |
| 961 "sources": "sources", | 962 "sources": "sources", |
| 962 "timeline": "timeline", | 963 "timeline": "timeline", |
| 963 "tracing": "timeline", | 964 "tracing": "timeline", |
| 964 } | 965 } |
| 965 var initialPanelShown = false; | 966 var initialPanelShown = false; |
| 966 for (var folder in initialPanelByFolder) { | 967 for (var folder in initialPanelByFolder) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 _output("[page] " + text); | 1058 _output("[page] " + text); |
| 1058 } | 1059 } |
| 1059 | 1060 |
| 1060 function _output(result) | 1061 function _output(result) |
| 1061 { | 1062 { |
| 1062 if (!outputElement) | 1063 if (!outputElement) |
| 1063 createOutputElement(); | 1064 createOutputElement(); |
| 1064 outputElement.appendChild(document.createTextNode(result)); | 1065 outputElement.appendChild(document.createTextNode(result)); |
| 1065 outputElement.appendChild(document.createElement("br")); | 1066 outputElement.appendChild(document.createElement("br")); |
| 1066 } | 1067 } |
| OLD | NEW |