| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 109 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 110 'cr_slider_tests.js', | 110 'cr_slider_tests.js', |
| 111 ]), | 111 ]), |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 TEST_F('CrElementsSliderTest', 'All', function() { | 114 TEST_F('CrElementsSliderTest', 'All', function() { |
| 115 cr_slider.registerTests(); | 115 cr_slider.registerTests(); |
| 116 mocha.run(); | 116 mocha.run(); |
| 117 }); | 117 }); |
| 118 | 118 |
| 119 function CrElementsSharedMenuTest() {} | |
| 120 | |
| 121 CrElementsSharedMenuTest.prototype = { | |
| 122 __proto__: CrElementsBrowserTest.prototype, | |
| 123 | |
| 124 /** @override */ | |
| 125 browsePreload: | |
| 126 'chrome://resources/cr_elements/cr_shared_menu/cr_shared_menu.html', | |
| 127 | |
| 128 /** @override */ | |
| 129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | |
| 130 'cr_shared_menu_tests.js' | |
| 131 ]), | |
| 132 }; | |
| 133 | |
| 134 TEST_F('CrElementsSharedMenuTest', 'All', function() { | |
| 135 mocha.run(); | |
| 136 }); | |
| 137 | |
| 138 function CrElementsActionMenuTest() {} | 119 function CrElementsActionMenuTest() {} |
| 139 | 120 |
| 140 CrElementsActionMenuTest.prototype = { | 121 CrElementsActionMenuTest.prototype = { |
| 141 __proto__: CrElementsBrowserTest.prototype, | 122 __proto__: CrElementsBrowserTest.prototype, |
| 142 | 123 |
| 143 /** @override */ | 124 /** @override */ |
| 144 browsePreload: | 125 browsePreload: |
| 145 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html', | 126 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html', |
| 146 | 127 |
| 147 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 148 'cr_action_menu_test.js', | 129 'cr_action_menu_test.js', |
| 149 ]), | 130 ]), |
| 150 }; | 131 }; |
| 151 | 132 |
| 152 TEST_F('CrElementsActionMenuTest', 'All', function() { | 133 TEST_F('CrElementsActionMenuTest', 'All', function() { |
| 153 mocha.run(); | 134 mocha.run(); |
| 154 }); | 135 }); |
| OLD | NEW |