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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 855 |
856 var promises = []; | 856 var promises = []; |
857 for (var moduleName of InspectorTest._modulesToPreload) | 857 for (var moduleName of InspectorTest._modulesToPreload) |
858 promises.push(self.runtime.loadModulePromise(moduleName)); | 858 promises.push(self.runtime.loadModulePromise(moduleName)); |
859 | 859 |
860 for (var i = 0; i < InspectorTest._panelsToPreload.length; ++i) { | 860 for (var i = 0; i < InspectorTest._panelsToPreload.length; ++i) { |
861 lastLoadedPanel = InspectorTest._panelsToPreload[i]; | 861 lastLoadedPanel = InspectorTest._panelsToPreload[i]; |
862 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel)); | 862 promises.push(WebInspector.inspectorView.panel(lastLoadedPanel)); |
863 } | 863 } |
864 | 864 |
865 var testPath = self.localStorage ? self.localStorage["testPath"] || "" :
""; | 865 var testPath = WebInspector.settings.createSetting("testPath", "").get()
; |
866 | 866 |
867 // 2. Show initial panel based on test path. | 867 // 2. Show initial panel based on test path. |
868 var initialPanelByFolder = { | 868 var initialPanelByFolder = { |
869 "audits": "audits", | 869 "audits": "audits", |
870 "console": "console", | 870 "console": "console", |
871 "elements": "elements", | 871 "elements": "elements", |
872 "editor": "sources", | 872 "editor": "sources", |
873 "layers": "layers", | 873 "layers": "layers", |
874 "profiler": "profiles", | 874 "profiler": "profiles", |
875 "resource-tree": "resources", | 875 "resource-tree": "resources", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 _output("[page] " + text); | 974 _output("[page] " + text); |
975 } | 975 } |
976 | 976 |
977 function _output(result) | 977 function _output(result) |
978 { | 978 { |
979 if (!outputElement) | 979 if (!outputElement) |
980 createOutputElement(); | 980 createOutputElement(); |
981 outputElement.appendChild(document.createTextNode(result)); | 981 outputElement.appendChild(document.createTextNode(result)); |
982 outputElement.appendChild(document.createElement("br")); | 982 outputElement.appendChild(document.createElement("br")); |
983 } | 983 } |
OLD | NEW |