OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Tests for shared Polymer elements. */ | 5 /** @fileoverview Tests for shared Polymer elements. */ |
6 | 6 |
7 /** @const {string} Path to source root. */ | 7 /** @const {string} Path to source root. */ |
8 var ROOT_PATH = '../../../../../'; | 8 var ROOT_PATH = '../../../../../'; |
9 | 9 |
10 // Polymer BrowserTest fixture. | 10 // Polymer BrowserTest fixture. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 /** @override */ | 168 /** @override */ |
169 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 169 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
170 'cr_scrollable_behavior_tests.js', | 170 'cr_scrollable_behavior_tests.js', |
171 ]), | 171 ]), |
172 }; | 172 }; |
173 | 173 |
174 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { | 174 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { |
175 mocha.run(); | 175 mocha.run(); |
176 }); | 176 }); |
177 | 177 |
| 178 function CrElementsPolicyIndicatorBehaviorTest() {} |
| 179 |
| 180 CrElementsPolicyIndicatorBehaviorTest.prototype = { |
| 181 __proto__: CrElementsBrowserTest.prototype, |
| 182 |
| 183 /** @override */ |
| 184 browsePreload: |
| 185 'chrome://resources/cr_elements/policy/cr_policy_indicator_behavior.html', |
| 186 |
| 187 /** @override */ |
| 188 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 189 'cr_policy_strings.js', |
| 190 'cr_policy_indicator_behavior_tests.js', |
| 191 ]), |
| 192 }; |
| 193 |
| 194 TEST_F('CrElementsPolicyIndicatorBehaviorTest', 'All', function() { |
| 195 mocha.run(); |
| 196 }); |
| 197 |
178 function CrElementsPolicyPrefIndicatorTest() {} | 198 function CrElementsPolicyPrefIndicatorTest() {} |
179 | 199 |
180 CrElementsPolicyPrefIndicatorTest.prototype = { | 200 CrElementsPolicyPrefIndicatorTest.prototype = { |
181 __proto__: CrElementsBrowserTest.prototype, | 201 __proto__: CrElementsBrowserTest.prototype, |
182 | 202 |
183 /** @override */ | 203 /** @override */ |
184 browsePreload: | 204 browsePreload: |
185 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', | 205 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', |
186 | 206 |
187 /** @override */ | 207 /** @override */ |
188 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 208 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 209 'cr_policy_strings.js', |
189 'cr_policy_pref_indicator_tests.js', | 210 'cr_policy_pref_indicator_tests.js', |
190 ]), | 211 ]), |
191 }; | 212 }; |
192 | 213 |
193 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | 214 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { |
194 mocha.run(); | 215 mocha.run(); |
195 }); | 216 }); |
OLD | NEW |