Chromium Code Reviews| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 browsePreload: 'chrome://resources/cr_elements/cr_drawer/cr_drawer.html', | 125 browsePreload: 'chrome://resources/cr_elements/cr_drawer/cr_drawer.html', |
| 126 | 126 |
| 127 /** @override */ | 127 /** @override */ |
| 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat( | 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat( |
| 129 ['cr_drawer_tests.js', ROOT_PATH + 'ui/webui/resources/js/util.js']), | 129 ['cr_drawer_tests.js', ROOT_PATH + 'ui/webui/resources/js/util.js']), |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 TEST_F('CrElementsDrawerTest', 'All', function() { | 132 TEST_F('CrElementsDrawerTest', 'All', function() { |
| 133 mocha.run(); | 133 mocha.run(); |
| 134 }); | 134 }); |
| 135 | |
|
Dan Beam
2017/02/03 22:29:00
nit: @constructor and associated copy pasta
stevenjb
2017/02/04 00:37:24
This was missing form all of the tests in this fil
| |
| 136 function CrElementsScrollableBehaviorTest() {} | |
| 137 | |
| 138 CrElementsScrollableBehaviorTest.prototype = { | |
| 139 __proto__: CrElementsBrowserTest.prototype, | |
| 140 | |
| 141 /** @override */ | |
| 142 browsePreload: 'chrome://resources/cr_elements/cr_scrollable_behavior.html', | |
| 143 | |
| 144 /** @override */ | |
| 145 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | |
| 146 'cr_scrollable_behavior_tests.js', | |
| 147 ]), | |
| 148 }; | |
| 149 | |
| 150 TEST_F('CrElementsScrollableBehaviorTest', 'All', function() { | |
| 151 mocha.run(); | |
| 152 }); | |
| OLD | NEW |