| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { | 178 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { |
| 179 mocha.run(); | 179 mocha.run(); |
| 180 }); | 180 }); |
| 181 | 181 |
| 182 /** | 182 /** |
| 183 * @constructor | 183 * @constructor |
| 184 * @extends {CrElementsBrowserTest} | 184 * @extends {CrElementsBrowserTest} |
| 185 */ | 185 */ |
| 186 function CrElementsPolicyIndicatorBehaviorTest() {} |
| 187 |
| 188 CrElementsPolicyIndicatorBehaviorTest.prototype = { |
| 189 __proto__: CrElementsBrowserTest.prototype, |
| 190 |
| 191 /** @override */ |
| 192 browsePreload: |
| 193 'chrome://resources/cr_elements/policy/cr_policy_indicator_behavior.html', |
| 194 |
| 195 /** @override */ |
| 196 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 197 'cr_policy_strings.js', |
| 198 'cr_policy_indicator_behavior_tests.js', |
| 199 ]), |
| 200 }; |
| 201 |
| 202 TEST_F('CrElementsPolicyIndicatorBehaviorTest', 'All', function() { |
| 203 mocha.run(); |
| 204 }); |
| 205 |
| 206 /** |
| 207 * @constructor |
| 208 * @extends {CrElementsBrowserTest} |
| 209 */ |
| 186 function CrElementsPolicyPrefIndicatorTest() {} | 210 function CrElementsPolicyPrefIndicatorTest() {} |
| 187 | 211 |
| 188 CrElementsPolicyPrefIndicatorTest.prototype = { | 212 CrElementsPolicyPrefIndicatorTest.prototype = { |
| 189 __proto__: CrElementsBrowserTest.prototype, | 213 __proto__: CrElementsBrowserTest.prototype, |
| 190 | 214 |
| 191 /** @override */ | 215 /** @override */ |
| 192 browsePreload: | 216 browsePreload: |
| 193 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', | 217 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', |
| 194 | 218 |
| 195 /** @override */ | 219 /** @override */ |
| 196 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 220 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 221 'cr_policy_strings.js', |
| 197 'cr_policy_pref_indicator_tests.js', | 222 'cr_policy_pref_indicator_tests.js', |
| 198 ]), | 223 ]), |
| 199 }; | 224 }; |
| 200 | 225 |
| 201 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | 226 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { |
| 202 mocha.run(); | 227 mocha.run(); |
| 203 }); | 228 }); |
| 204 | 229 |
| 205 /** | 230 /** |
| 206 * @constructor | 231 * @constructor |
| 207 * @extends {CrElementsBrowserTest} | 232 * @extends {CrElementsBrowserTest} |
| 208 */ | 233 */ |
| 209 function CrElementsDialogTest() {} | 234 function CrElementsDialogTest() {} |
| 210 | 235 |
| 211 CrElementsDialogTest.prototype = { | 236 CrElementsDialogTest.prototype = { |
| 212 __proto__: CrElementsBrowserTest.prototype, | 237 __proto__: CrElementsBrowserTest.prototype, |
| 213 | 238 |
| 214 /** @override */ | 239 /** @override */ |
| 215 browsePreload: 'chrome://resources/cr_elements/cr_dialog/cr_dialog.html', | 240 browsePreload: 'chrome://resources/cr_elements/cr_dialog/cr_dialog.html', |
| 216 | 241 |
| 217 /** @override */ | 242 /** @override */ |
| 218 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 243 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 219 'cr_dialog_test.js', | 244 'cr_dialog_test.js', |
| 220 ]), | 245 ]), |
| 221 }; | 246 }; |
| 222 | 247 |
| 223 TEST_F('CrElementsDialogTest', 'All', function() { | 248 TEST_F('CrElementsDialogTest', 'All', function() { |
| 224 mocha.run(); | 249 mocha.run(); |
| 225 }); | 250 }); |
| OLD | NEW |