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

Side by Side Diff: Source/devtools/front_end/common/WebInspector.js

Issue 426553003: [DevTools] Run tests only after all UI bits are initialized. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: renamed to InspectorUILoadedForTests Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 self.WebInspector = { 7 self.WebInspector = {
8 _queryParamsObject: {} 8 _queryParamsObject: {}
9 } 9 }
10 10
11 WebInspector.Events = {
12 InspectorLoaded: "InspectorLoaded"
13 }
14
15 /** 11 /**
16 * @param {string} name 12 * @param {string} name
17 * @return {?string} 13 * @return {?string}
18 */ 14 */
19 WebInspector.queryParam = function(name) 15 WebInspector.queryParam = function(name)
20 { 16 {
21 return WebInspector._queryParamsObject.hasOwnProperty(name) ? WebInspector._ queryParamsObject[name] : null; 17 return WebInspector._queryParamsObject.hasOwnProperty(name) ? WebInspector._ queryParamsObject[name] : null;
22 } 18 }
23 19
24 {(function parseQueryParameters() 20 {(function parseQueryParameters()
(...skipping 12 matching lines...) Expand all
37 if (settingsParam) { 33 if (settingsParam) {
38 try { 34 try {
39 var settings = JSON.parse(window.decodeURI(settingsParam)); 35 var settings = JSON.parse(window.decodeURI(settingsParam));
40 for (var key in settings) 36 for (var key in settings)
41 window.localStorage[key] = settings[key]; 37 window.localStorage[key] = settings[key];
42 } catch(e) { 38 } catch(e) {
43 // Ignore malformed settings. 39 // Ignore malformed settings.
44 } 40 }
45 } 41 }
46 })();} 42 })();}
OLDNEW
« no previous file with comments | « Source/devtools/front_end/common/NotificationService.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698