Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: LayoutTests/http/tests/inspector/inspector-test.js

Issue 1085253003: Revert of Revert of DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/split-view.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/split-view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698