| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 function CrElementsSliderTest() {} | 120 function CrElementsSliderTest() {} |
| 121 | 121 |
| 122 CrElementsSliderTest.prototype = { | 122 CrElementsSliderTest.prototype = { |
| 123 __proto__: CrElementsBrowserTest.prototype, | 123 __proto__: CrElementsBrowserTest.prototype, |
| 124 | 124 |
| 125 /** @override */ | 125 /** @override */ |
| 126 browsePreload: 'chrome://resources/cr_elements/cr_slider/cr_slider.html', | 126 browsePreload: 'chrome://resources/cr_elements/cr_slider/cr_slider.html', |
| 127 | 127 |
| 128 /** @override */ | 128 /** @override */ |
| 129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 130 'settings_private_test_constants.js', |
| 130 'cr_slider_tests.js', | 131 'cr_slider_tests.js', |
| 131 ]), | 132 ]), |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 TEST_F('CrElementsSliderTest', 'All', function() { | 135 TEST_F('CrElementsSliderTest', 'All', function() { |
| 135 cr_slider.registerTests(); | 136 cr_slider.registerTests(); |
| 136 mocha.run(); | 137 mocha.run(); |
| 137 }); | 138 }); |
| 138 | 139 |
| 139 /** | 140 /** |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 212 |
| 212 CrElementsPolicyPrefIndicatorTest.prototype = { | 213 CrElementsPolicyPrefIndicatorTest.prototype = { |
| 213 __proto__: CrElementsBrowserTest.prototype, | 214 __proto__: CrElementsBrowserTest.prototype, |
| 214 | 215 |
| 215 /** @override */ | 216 /** @override */ |
| 216 browsePreload: | 217 browsePreload: |
| 217 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', | 218 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', |
| 218 | 219 |
| 219 /** @override */ | 220 /** @override */ |
| 220 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 221 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 222 'settings_private_test_constants.js', |
| 221 'cr_policy_strings.js', | 223 'cr_policy_strings.js', |
| 222 'cr_policy_pref_indicator_tests.js', | 224 'cr_policy_pref_indicator_tests.js', |
| 223 ]), | 225 ]), |
| 224 }; | 226 }; |
| 225 | 227 |
| 226 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | 228 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { |
| 227 mocha.run(); | 229 mocha.run(); |
| 228 }); | 230 }); |
| 229 | 231 |
| 230 GEN('#if defined(OS_CHROMEOS)'); | 232 GEN('#if defined(OS_CHROMEOS)'); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 269 |
| 268 /** @override */ | 270 /** @override */ |
| 269 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 271 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 270 'cr_dialog_test.js', | 272 'cr_dialog_test.js', |
| 271 ]), | 273 ]), |
| 272 }; | 274 }; |
| 273 | 275 |
| 274 TEST_F('CrElementsDialogTest', 'All', function() { | 276 TEST_F('CrElementsDialogTest', 'All', function() { |
| 275 mocha.run(); | 277 mocha.run(); |
| 276 }); | 278 }); |
| OLD | NEW |