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

Unified Diff: chrome/test/data/webui/settings/on_startup_browsertest.js

Issue 1833613002: MD Settings: fix improper use of prefs in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « chrome/test/data/webui/settings/appearance_browsertest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/on_startup_browsertest.js
diff --git a/chrome/test/data/webui/settings/on_startup_browsertest.js b/chrome/test/data/webui/settings/on_startup_browsertest.js
index 04882f82ffac71d8e75a3ca37744f2e55997cfc8..7e098ddf3711cc6f30b59638f6aab617937bc506 100644
--- a/chrome/test/data/webui/settings/on_startup_browsertest.js
+++ b/chrome/test/data/webui/settings/on_startup_browsertest.js
@@ -52,20 +52,10 @@ TEST_F('OnStartupSettingsBrowserTest', 'uiTests', function() {
};
suite('OnStartupHandler', function() {
- var fakePrefs = [{
- key: 'session.restore_on_startup',
- type: chrome.settingsPrivate.PrefType.NUMBER,
- value: 1234,
- }];
-
suiteSetup(function() {
settingsPrefs = document.querySelector('cr-settings').$$(
'settings-prefs');
assertTrue(!!settingsPrefs);
- CrSettingsPrefs.resetForTesting();
- settingsPrefs.resetForTesting();
- var fakeApi = new settings.FakeSettingsPrivate(fakePrefs);
- settingsPrefs.initializeForTesting(fakeApi);
return CrSettingsPrefs.initialized;
});
« no previous file with comments | « chrome/test/data/webui/settings/appearance_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698