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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html', | 126 'chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html', |
| 127 | 127 |
| 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | 128 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ |
| 129 'cr_action_menu_test.js', | 129 'cr_action_menu_test.js', |
| 130 ]), | 130 ]), |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 TEST_F('CrElementsActionMenuTest', 'All', function() { | 133 TEST_F('CrElementsActionMenuTest', 'All', function() { |
| 134 mocha.run(); | 134 mocha.run(); |
| 135 }); | 135 }); |
| 136 | |
| 137 function CrElementsPolicyPrefIndicatorTest() {} | |
| 138 | |
| 139 CrElementsPolicyPrefIndicatorTest.prototype = { | |
| 140 __proto__: CrElementsBrowserTest.prototype, | |
| 141 | |
| 142 /** @override */ | |
| 143 browsePreload: | |
| 144 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', | |
| 145 | |
| 146 /** @override */ | |
| 147 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | |
| 148 // settings_private.js is needed just to define types, e.g. | |
| 149 // chrome.settingsPrivate.PrefType. | |
| 150 '../../../../../third_party/closure_compiler/externs/settings_private.js', | |
|
Dan Beam
2017/01/18 01:06:34
it's really a huge bummer to execute externs
Dan Beam
2017/01/18 01:06:52
don't we have a thing called "interfaces" for this
stevenjb
2017/01/18 23:13:03
*_interface.js explicitly can not be executed (and
Dan Beam
2017/02/16 23:14:49
not lgtm
| |
| 151 'cr_policy_pref_indicator_tests.js', | |
| 152 ]), | |
| 153 }; | |
| 154 | |
| 155 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | |
| 156 mocha.run(); | |
| 157 }); | |
| OLD | NEW |