OLD | NEW |
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 Loading... |
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 }); |
OLD | NEW |