| 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 19 matching lines...) Expand all Loading... |
| 30 }, | 30 }, |
| 31 | 31 |
| 32 /** @override */ | 32 /** @override */ |
| 33 setUp: function() { | 33 setUp: function() { |
| 34 PolymerTest.prototype.setUp.call(this); | 34 PolymerTest.prototype.setUp.call(this); |
| 35 // We aren't loading the main document. | 35 // We aren't loading the main document. |
| 36 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html'); | 36 this.accessibilityAuditConfig.ignoreSelectors('humanLangMissing', 'html'); |
| 37 }, | 37 }, |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 /** |
| 41 * @constructor |
| 42 * @extends {CrElementsBrowserTest} |
| 43 */ |
| 40 function CrElementsLazyRenderTest() {} | 44 function CrElementsLazyRenderTest() {} |
| 41 | 45 |
| 42 /** | 46 /** |
| 43 * @constructor | 47 * @constructor |
| 44 * @extends {CrElementsBrowserTest} | 48 * @extends {CrElementsBrowserTest} |
| 45 */ | 49 */ |
| 46 CrElementsLazyRenderTest.prototype = { | 50 CrElementsLazyRenderTest.prototype = { |
| 47 __proto__: CrElementsBrowserTest.prototype, | 51 __proto__: CrElementsBrowserTest.prototype, |
| 48 | 52 |
| 49 /** @override */ | 53 /** @override */ |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 /** @override */ | 172 /** @override */ |
| 169 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 173 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 170 'cr_scrollable_behavior_tests.js', | 174 'cr_scrollable_behavior_tests.js', |
| 171 ]), | 175 ]), |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { | 178 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { |
| 175 mocha.run(); | 179 mocha.run(); |
| 176 }); | 180 }); |
| 177 | 181 |
| 182 /** |
| 183 * @constructor |
| 184 * @extends {CrElementsBrowserTest} |
| 185 */ |
| 178 function CrElementsPolicyPrefIndicatorTest() {} | 186 function CrElementsPolicyPrefIndicatorTest() {} |
| 179 | 187 |
| 180 CrElementsPolicyPrefIndicatorTest.prototype = { | 188 CrElementsPolicyPrefIndicatorTest.prototype = { |
| 181 __proto__: CrElementsBrowserTest.prototype, | 189 __proto__: CrElementsBrowserTest.prototype, |
| 182 | 190 |
| 183 /** @override */ | 191 /** @override */ |
| 184 browsePreload: | 192 browsePreload: |
| 185 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', | 193 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', |
| 186 | 194 |
| 187 /** @override */ | 195 /** @override */ |
| 188 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 196 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 189 'cr_policy_pref_indicator_tests.js', | 197 'cr_policy_pref_indicator_tests.js', |
| 190 ]), | 198 ]), |
| 191 }; | 199 }; |
| 192 | 200 |
| 193 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | 201 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { |
| 194 mocha.run(); | 202 mocha.run(); |
| 195 }); | 203 }); |
| 204 |
| 205 /** |
| 206 * @constructor |
| 207 * @extends {CrElementsBrowserTest} |
| 208 */ |
| 209 function CrElementsDialogTest() {} |
| 210 |
| 211 CrElementsDialogTest.prototype = { |
| 212 __proto__: CrElementsBrowserTest.prototype, |
| 213 |
| 214 /** @override */ |
| 215 browsePreload: 'chrome://resources/cr_elements/cr_dialog/cr_dialog.html', |
| 216 |
| 217 /** @override */ |
| 218 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 219 'cr_dialog_test.js', |
| 220 ]), |
| 221 }; |
| 222 |
| 223 TEST_F('CrElementsDialogTest', 'All', function() { |
| 224 mocha.run(); |
| 225 }); |
| OLD | NEW |