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

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: comments Created 3 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 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 pref with mixed schemes (present and absent). 59 * An example pref with mixed schemes (present and absent).
59 * @type {SiteSettingsPref} 60 * @type {SiteSettingsPref}
60 */ 61 */
61 var prefsMixedSchemes = { 62 var prefsMixedSchemes = {
62 exceptions: { 63 exceptions: {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 setting: 'allow', 135 setting: 'allow',
135 source: 'preference', 136 source: 'preference',
136 }, 137 },
137 ], 138 ],
138 mic: [], 139 mic: [],
139 notifications: [], 140 notifications: [],
140 plugins: [], 141 plugins: [],
141 midiDevices: [], 142 midiDevices: [],
142 protectedContent: [], 143 protectedContent: [],
143 popups: [], 144 popups: [],
145 subresource_filter: [],
144 unsandboxed_plugins: [], 146 unsandboxed_plugins: [],
145 } 147 }
146 }; 148 };
147 149
148 /** 150 /**
149 * An example pref with multiple categories and multiple allow/block 151 * An example pref with multiple categories and multiple allow/block
150 * state. 152 * state.
151 * @type {SiteSettingsPref} 153 * @type {SiteSettingsPref}
152 */ 154 */
153 var prefsVarious = { 155 var prefsVarious = {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 { 192 {
191 embeddingOrigin: 'https://foo.com', 193 embeddingOrigin: 'https://foo.com',
192 origin: 'https://foo.com', 194 origin: 'https://foo.com',
193 setting: 'block', 195 setting: 'block',
194 source: 'preference', 196 source: 'preference',
195 }, 197 },
196 ], 198 ],
197 plugins: [], 199 plugins: [],
198 protectedContent: [], 200 protectedContent: [],
199 popups: [], 201 popups: [],
202 subresource_filter: [],
200 unsandboxed_plugins: [], 203 unsandboxed_plugins: [],
201 } 204 }
202 }; 205 };
203 206
204 /** 207 /**
205 * An example pref with 1 allowed location item. 208 * An example pref with 1 allowed location item.
206 * @type {SiteSettingsPref} 209 * @type {SiteSettingsPref}
207 */ 210 */
208 var prefsOneEnabled = { 211 var prefsOneEnabled = {
209 exceptions: { 212 exceptions: {
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 982
980 assertFalse(dialog.$.dialog.open); 983 assertFalse(dialog.$.dialog.open);
981 }); 984 });
982 }); 985 });
983 }); 986 });
984 987
985 return { 988 return {
986 registerTests: registerTests, 989 registerTests: registerTests,
987 }; 990 };
988 }); 991 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698