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-list. */ | 5 /** @fileoverview Suite of tests for site-list. */ |
6 | 6 |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 }; | 56 }; |
57 | 57 |
58 /** | 58 /** |
59 * An example of prefs controlledBy policy. | 59 * An example of prefs controlledBy policy. |
60 * @type {SiteSettingsPref} | 60 * @type {SiteSettingsPref} |
61 */ | 61 */ |
62 var prefsControlled = { | 62 var prefsControlled = { |
63 exceptions: { | 63 exceptions: { |
64 plugins: [ | 64 plugins: [ |
65 { | 65 { |
66 embeddingOrigin: 'http://foo-block.com', | 66 embeddingOrigin: '', |
67 origin: 'http://foo-block.com', | 67 origin: 'http://foo-block.com', |
68 setting: 'block', | 68 setting: 'block', |
69 source: 'policy', | 69 source: 'policy', |
70 }, | 70 }, |
71 ] | 71 ] |
72 } | 72 } |
73 }; | 73 }; |
74 | 74 |
75 /** | 75 /** |
76 * An example pref with mixed schemes (present and absent). | 76 * An example pref with mixed schemes (present and absent). |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 input.value = expectedPattern; | 1095 input.value = expectedPattern; |
1096 input.fire('input'); | 1096 input.fire('input'); |
1097 | 1097 |
1098 return browserProxy.whenCalled('isPatternValid').then(function(pattern) { | 1098 return browserProxy.whenCalled('isPatternValid').then(function(pattern) { |
1099 assertEquals(expectedPattern, pattern); | 1099 assertEquals(expectedPattern, pattern); |
1100 assertTrue(actionButton.disabled); | 1100 assertTrue(actionButton.disabled); |
1101 assertTrue(input.invalid); | 1101 assertTrue(input.invalid); |
1102 }); | 1102 }); |
1103 }); | 1103 }); |
1104 }); | 1104 }); |
OLD | NEW |