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

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

Issue 2699793003: MD Settings: Add MIDI devices to Content Settings (Closed)
Patch Set: add icon and fix tests 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 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 function registerTests() { 7 function registerTests() {
8 suite('SiteList', function() { 8 suite('SiteList', function() {
9 /** 9 /**
10 * A site list element created before each test. 10 * A site list element created before each test.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 embeddingOrigin: 'https://foo-block.com:443', 53 embeddingOrigin: 'https://foo-block.com:443',
54 origin: 'https://foo-block.com:443', 54 origin: 'https://foo-block.com:443',
55 setting: 'block', 55 setting: 'block',
56 source: 'preference', 56 source: 'preference',
57 }, 57 },
58 ], 58 ],
59 images: [], 59 images: [],
60 javascript: [], 60 javascript: [],
61 mic: [], 61 mic: [],
62 midiDevices: [],
62 notifications: [], 63 notifications: [],
63 plugins: [], 64 plugins: [],
64 protectedContent: [], 65 protectedContent: [],
65 popups: [], 66 popups: [],
66 unsandboxed_plugins: [], 67 unsandboxed_plugins: [],
67 } 68 }
68 }; 69 };
69 70
70 /** 71 /**
71 * An example pref with mixed schemes (present and absent). 72 * An example pref with mixed schemes (present and absent).
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 { 145 {
145 origin: 'https://[*.]foo.com', 146 origin: 'https://[*.]foo.com',
146 embeddingOrigin: '*', 147 embeddingOrigin: '*',
147 setting: 'allow', 148 setting: 'allow',
148 source: 'preference', 149 source: 'preference',
149 }, 150 },
150 ], 151 ],
151 mic: [], 152 mic: [],
152 notifications: [], 153 notifications: [],
153 plugins: [], 154 plugins: [],
155 midiDevices: [],
154 protectedContent: [], 156 protectedContent: [],
155 popups: [], 157 popups: [],
156 unsandboxed_plugins: [], 158 unsandboxed_plugins: [],
157 } 159 }
158 }; 160 };
159 161
160 /** 162 /**
161 * An example pref with multiple categories and multiple allow/block 163 * An example pref with multiple categories and multiple allow/block
162 * state. 164 * state.
163 * @type {SiteSettingsPref} 165 * @type {SiteSettingsPref}
(...skipping 14 matching lines...) Expand all
178 { 180 {
179 embeddingOrigin: 'https://bar.com', 181 embeddingOrigin: 'https://bar.com',
180 origin: 'https://bar.com', 182 origin: 'https://bar.com',
181 setting: 'block', 183 setting: 'block',
182 source: 'preference', 184 source: 'preference',
183 }, 185 },
184 ], 186 ],
185 images: [], 187 images: [],
186 javascript: [], 188 javascript: [],
187 mic: [], 189 mic: [],
190 midiDevices: [],
188 notifications: [ 191 notifications: [
189 { 192 {
190 embeddingOrigin: 'https://google.com', 193 embeddingOrigin: 'https://google.com',
191 origin: 'https://google.com', 194 origin: 'https://google.com',
192 setting: 'block', 195 setting: 'block',
193 source: 'preference', 196 source: 'preference',
194 }, 197 },
195 { 198 {
196 embeddingOrigin: 'https://bar.com', 199 embeddingOrigin: 'https://bar.com',
197 origin: 'https://bar.com', 200 origin: 'https://bar.com',
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 assertEquals(settings.ContentSettingsTypes.JAVASCRIPT, args[2]); 892 assertEquals(settings.ContentSettingsTypes.JAVASCRIPT, args[2]);
890 assertEquals('allow', args[3]); 893 assertEquals('allow', args[3]);
891 }); 894 });
892 }); 895 });
893 }); 896 });
894 } 897 }
895 return { 898 return {
896 registerTests: registerTests, 899 registerTests: registerTests,
897 }; 900 };
898 }); 901 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698