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

Side by Side Diff: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js

Issue 2501763003: Remove fullscreen from MD Settings internal lists. (Closed)
Patch Set: Fixed tests. Created 4 years, 1 month 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 | « chrome/test/data/webui/settings/site_settings_category_tests.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * An example empty pref. 6 * An example empty pref.
7 * @type {SiteSettingsPref} 7 * @type {SiteSettingsPref}
8 */ 8 */
9 var prefsEmpty = { 9 var prefsEmpty = {
10 defaults: { 10 defaults: {
11 auto_downloads: '', 11 auto_downloads: '',
12 background_sync: '', 12 background_sync: '',
13 camera: '', 13 camera: '',
14 cookies: '', 14 cookies: '',
15 fullscreen: '',
16 geolocation: '', 15 geolocation: '',
17 javascript: '', 16 javascript: '',
18 keygen: '', 17 keygen: '',
19 mic: '', 18 mic: '',
20 notifications: '', 19 notifications: '',
21 plugins: '', 20 plugins: '',
22 popups: '', 21 popups: '',
23 unsandboxed_plugins: '', 22 unsandboxed_plugins: '',
24 }, 23 },
25 exceptions: { 24 exceptions: {
26 auto_downloads: [], 25 auto_downloads: [],
27 background_sync: [], 26 background_sync: [],
28 camera: [], 27 camera: [],
29 cookies: [], 28 cookies: [],
30 fullscreen: [],
31 geolocation: [], 29 geolocation: [],
32 javascript: [], 30 javascript: [],
33 keygen: [], 31 keygen: [],
34 mic: [], 32 mic: [],
35 notifications: [], 33 notifications: [],
36 plugins: [], 34 plugins: [],
37 popups: [], 35 popups: [],
38 unsandboxed_plugins: [], 36 unsandboxed_plugins: [],
39 }, 37 },
40 }; 38 };
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 117
120 var pref = undefined; 118 var pref = undefined;
121 if (contentType == settings.ContentSettingsTypes.AUTOMATIC_DOWNLOADS) { 119 if (contentType == settings.ContentSettingsTypes.AUTOMATIC_DOWNLOADS) {
122 pref = this.prefs_.defaults.auto_downloads; 120 pref = this.prefs_.defaults.auto_downloads;
123 } else if (contentType == settings.ContentSettingsTypes.BACKGROUND_SYNC) { 121 } else if (contentType == settings.ContentSettingsTypes.BACKGROUND_SYNC) {
124 pref = this.prefs_.background_sync; 122 pref = this.prefs_.background_sync;
125 } else if (contentType == settings.ContentSettingsTypes.CAMERA) { 123 } else if (contentType == settings.ContentSettingsTypes.CAMERA) {
126 pref = this.prefs_.defaults.camera; 124 pref = this.prefs_.defaults.camera;
127 } else if (contentType == settings.ContentSettingsTypes.COOKIES) { 125 } else if (contentType == settings.ContentSettingsTypes.COOKIES) {
128 pref = this.prefs_.defaults.cookies; 126 pref = this.prefs_.defaults.cookies;
129 } else if (contentType == settings.ContentSettingsTypes.FULLSCREEN) {
130 pref = this.prefs_.defaults.fullscreen;
131 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) { 127 } else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) {
132 pref = this.prefs_.defaults.geolocation; 128 pref = this.prefs_.defaults.geolocation;
133 } else if (contentType == settings.ContentSettingsTypes.IMAGES) { 129 } else if (contentType == settings.ContentSettingsTypes.IMAGES) {
134 pref = this.prefs_.defaults.images; 130 pref = this.prefs_.defaults.images;
135 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) { 131 } else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) {
136 pref = this.prefs_.defaults.javascript; 132 pref = this.prefs_.defaults.javascript;
137 } else if (contentType == settings.ContentSettingsTypes.KEYGEN) { 133 } else if (contentType == settings.ContentSettingsTypes.KEYGEN) {
138 pref = this.prefs_.defaults.keygen; 134 pref = this.prefs_.defaults.keygen;
139 } else if (contentType == settings.ContentSettingsTypes.MIC) { 135 } else if (contentType == settings.ContentSettingsTypes.MIC) {
140 pref = this.prefs_.defaults.mic; 136 pref = this.prefs_.defaults.mic;
(...skipping 22 matching lines...) Expand all
163 159
164 var pref = undefined; 160 var pref = undefined;
165 if (contentType == settings.ContentSettingsTypes.AUTOMATIC_DOWNLOADS) 161 if (contentType == settings.ContentSettingsTypes.AUTOMATIC_DOWNLOADS)
166 pref = this.prefs_.exceptions.auto_downloads; 162 pref = this.prefs_.exceptions.auto_downloads;
167 else if (contentType == settings.ContentSettingsTypes.BACKGROUND_SYNC) 163 else if (contentType == settings.ContentSettingsTypes.BACKGROUND_SYNC)
168 pref = this.prefs_.exceptions.background_sync; 164 pref = this.prefs_.exceptions.background_sync;
169 else if (contentType == settings.ContentSettingsTypes.CAMERA) 165 else if (contentType == settings.ContentSettingsTypes.CAMERA)
170 pref = this.prefs_.exceptions.camera; 166 pref = this.prefs_.exceptions.camera;
171 else if (contentType == settings.ContentSettingsTypes.COOKIES) 167 else if (contentType == settings.ContentSettingsTypes.COOKIES)
172 pref = this.prefs_.exceptions.cookies; 168 pref = this.prefs_.exceptions.cookies;
173 else if (contentType == settings.ContentSettingsTypes.FULLSCREEN)
174 pref = this.prefs_.exceptions.fullscreen;
175 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION) 169 else if (contentType == settings.ContentSettingsTypes.GEOLOCATION)
176 pref = this.prefs_.exceptions.geolocation; 170 pref = this.prefs_.exceptions.geolocation;
177 else if (contentType == settings.ContentSettingsTypes.IMAGES) 171 else if (contentType == settings.ContentSettingsTypes.IMAGES)
178 pref = this.prefs_.exceptions.images; 172 pref = this.prefs_.exceptions.images;
179 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT) 173 else if (contentType == settings.ContentSettingsTypes.JAVASCRIPT)
180 pref = this.prefs_.exceptions.javascript; 174 pref = this.prefs_.exceptions.javascript;
181 else if (contentType == settings.ContentSettingsTypes.KEYGEN) 175 else if (contentType == settings.ContentSettingsTypes.KEYGEN)
182 pref = this.prefs_.exceptions.keygen; 176 pref = this.prefs_.exceptions.keygen;
183 else if (contentType == settings.ContentSettingsTypes.MIC) 177 else if (contentType == settings.ContentSettingsTypes.MIC)
184 pref = this.prefs_.exceptions.mic; 178 pref = this.prefs_.exceptions.mic;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 fetchUsbDevices: function() { 224 fetchUsbDevices: function() {
231 this.methodCalled('fetchUsbDevices'); 225 this.methodCalled('fetchUsbDevices');
232 return Promise.resolve(this.usbDevices_); 226 return Promise.resolve(this.usbDevices_);
233 }, 227 },
234 228
235 /** @override */ 229 /** @override */
236 removeUsbDevice: function() { 230 removeUsbDevice: function() {
237 this.methodCalled('removeUsbDevice', arguments); 231 this.methodCalled('removeUsbDevice', arguments);
238 } 232 }
239 }; 233 };
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/site_settings_category_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698