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

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

Issue 2682293002: Add desktop UI for the subresource filter content setting. (Closed)
Patch Set: cs_ui Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** @fileoverview Suite of tests for site-list. */ 5 /** @fileoverview Suite of tests for site-list. */
6 cr.define('site_list', function() { 6 cr.define('site_list', function() {
7 /** 7 /**
8 * An example pref with 2 blocked location items and 2 allowed. This pref 8 * An example pref with 2 blocked location items and 2 allowed. This pref
9 * is also used for the All Sites category and therefore needs values for 9 * is also used for the All Sites category and therefore needs values for
10 * all types, even though some might be blank. 10 * all types, even though some might be blank.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 }, 43 },
44 ], 44 ],
45 images: [], 45 images: [],
46 javascript: [], 46 javascript: [],
47 mic: [], 47 mic: [],
48 midiDevices: [], 48 midiDevices: [],
49 notifications: [], 49 notifications: [],
50 plugins: [], 50 plugins: [],
51 protectedContent: [], 51 protectedContent: [],
52 popups: [], 52 popups: [],
53 subresource_filter: [],
53 unsandboxed_plugins: [], 54 unsandboxed_plugins: [],
54 } 55 }
55 }; 56 };
56 57
57 /** 58 /**
58 * An example of prefs controlleBy policy. 59 * An example of prefs controlleBy policy.
59 * @type {SiteSettingsPref} 60 * @type {SiteSettingsPref}
60 */ 61 */
61 var prefsControlled = { 62 var prefsControlled = {
62 exceptions: { 63 exceptions: {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 setting: 'allow', 152 setting: 'allow',
152 source: 'preference', 153 source: 'preference',
153 }, 154 },
154 ], 155 ],
155 mic: [], 156 mic: [],
156 notifications: [], 157 notifications: [],
157 plugins: [], 158 plugins: [],
158 midiDevices: [], 159 midiDevices: [],
159 protectedContent: [], 160 protectedContent: [],
160 popups: [], 161 popups: [],
162 subresource_filter: [],
161 unsandboxed_plugins: [], 163 unsandboxed_plugins: [],
162 } 164 }
163 }; 165 };
164 166
165 /** 167 /**
166 * An example pref with multiple categories and multiple allow/block 168 * An example pref with multiple categories and multiple allow/block
167 * state. 169 * state.
168 * @type {SiteSettingsPref} 170 * @type {SiteSettingsPref}
169 */ 171 */
170 var prefsVarious = { 172 var prefsVarious = {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 embeddingOrigin: 'https://foo.com', 214 embeddingOrigin: 'https://foo.com',
213 incognito: false, 215 incognito: false,
214 origin: 'https://foo.com', 216 origin: 'https://foo.com',
215 setting: 'block', 217 setting: 'block',
216 source: 'preference', 218 source: 'preference',
217 }, 219 },
218 ], 220 ],
219 plugins: [], 221 plugins: [],
220 protectedContent: [], 222 protectedContent: [],
221 popups: [], 223 popups: [],
224 subresource_filter: [],
222 unsandboxed_plugins: [], 225 unsandboxed_plugins: [],
223 } 226 }
224 }; 227 };
225 228
226 /** 229 /**
227 * An example pref with 1 allowed location item. 230 * An example pref with 1 allowed location item.
228 * @type {SiteSettingsPref} 231 * @type {SiteSettingsPref}
229 */ 232 */
230 var prefsOneEnabled = { 233 var prefsOneEnabled = {
231 exceptions: { 234 exceptions: {
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 1137
1135 assertFalse(dialog.$.dialog.open); 1138 assertFalse(dialog.$.dialog.open);
1136 }); 1139 });
1137 }); 1140 });
1138 }); 1141 });
1139 1142
1140 return { 1143 return {
1141 registerTests: registerTests, 1144 registerTests: registerTests,
1142 }; 1145 };
1143 }); 1146 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698