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

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

Issue 2021343003: MD Site Settings: Add five new top level categories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback and add icons Created 4 years, 6 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-details. */ 5 /** @fileoverview Suite of tests for site-details. */
6 cr.define('site_details_permission', function() { 6 cr.define('site_details_permission', function() {
7 function registerTests() { 7 function registerTests() {
8 suite('SiteDetailsPermission', function() { 8 suite('SiteDetailsPermission', function() {
9 /** 9 /**
10 * A site list element created before each test. 10 * A site list element created before each test.
11 * @type {SiteDetailsPermission} 11 * @type {SiteDetailsPermission}
12 */ 12 */
13 var testElement; 13 var testElement;
14 14
15 /** 15 /**
16 * An example pref with only camera allowed. 16 * An example pref with only camera allowed.
17 */ 17 */
18 var prefs = { 18 var prefs = {
19 exceptions: { 19 exceptions: {
20 media_stream_camera: [ 20 camera: [
21 { 21 {
22 embeddingOrigin: 'https://foo-allow.com:443', 22 embeddingOrigin: 'https://foo-allow.com:443',
23 origin: 'https://foo-allow.com:443', 23 origin: 'https://foo-allow.com:443',
24 setting: 'allow', 24 setting: 'allow',
25 source: 'preference', 25 source: 'preference',
26 }, 26 },
27 ] 27 ]
28 } 28 }
29 }; 29 };
30 30
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 assertTrue(testElement.$.details.hidden); 126 assertTrue(testElement.$.details.hidden);
127 }.bind(this)); 127 }.bind(this));
128 }.bind(this)); 128 }.bind(this));
129 }); 129 });
130 }); 130 });
131 } 131 }
132 return { 132 return {
133 registerTests: registerTests, 133 registerTests: registerTests,
134 }; 134 };
135 }); 135 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/site_settings_helper.cc ('k') | chrome/test/data/webui/settings/site_details_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698