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

Unified Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2708413003: DevTools: make disable javascript setting temporary (Closed)
Patch Set: default global Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/common/Settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/Tests.js
diff --git a/third_party/WebKit/Source/devtools/front_end/Tests.js b/third_party/WebKit/Source/devtools/front_end/Tests.js
index 8a2af93c771199eeb03257597bf8c306f7785316..32107cae6f32a6b177d731b6b03f34f79892669e 100644
--- a/third_party/WebKit/Source/devtools/front_end/Tests.js
+++ b/third_party/WebKit/Source/devtools/front_end/Tests.js
@@ -808,9 +808,9 @@
setTimeout(reset, 0);
function createSettings() {
- var localSetting = Common.settings.createSetting('local', undefined, true);
+ var localSetting = Common.settings.createLocalSetting('local', undefined);
localSetting.set({s: 'local', n: 1});
- var globalSetting = Common.settings.createSetting('global', undefined, false);
+ var globalSetting = Common.settings.createSetting('global', undefined);
globalSetting.set({s: 'global', n: 2});
}
@@ -822,11 +822,11 @@
function gotPreferences(prefs) {
Main.Main._instanceForTest._createSettings(prefs);
- var localSetting = Common.settings.createSetting('local', undefined, true);
+ var localSetting = Common.settings.createLocalSetting('local', undefined);
test.assertEquals('object', typeof localSetting.get());
test.assertEquals('local', localSetting.get().s);
test.assertEquals(1, localSetting.get().n);
- var globalSetting = Common.settings.createSetting('global', undefined, false);
+ var globalSetting = Common.settings.createSetting('global', undefined);
test.assertEquals('object', typeof globalSetting.get());
test.assertEquals('global', globalSetting.get().s);
test.assertEquals(2, globalSetting.get().n);
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/common/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698