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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 // chrome.settingsPrivate.PrefType. | 149 // chrome.settingsPrivate.PrefType. |
| 150 '../../../../../third_party/closure_compiler/externs/settings_private.js', | 150 '../../../../../third_party/closure_compiler/externs/settings_private.js', |
| 151 'cr_policy_pref_indicator_tests.js', | 151 'cr_policy_pref_indicator_tests.js', |
| 152 ]), | 152 ]), |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { | 155 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { |
| 156 cr_policy_pref_indicator.registerTests(); | 156 cr_policy_pref_indicator.registerTests(); |
| 157 mocha.run(); | 157 mocha.run(); |
| 158 }); | 158 }); |
| 159 | |
| 160 function CrElementsPolicyNetworkIndicatorTest() {} | |
| 161 | |
| 162 CrElementsPolicyNetworkIndicatorTest.prototype = { | |
| 163 __proto__: CrElementsBrowserTest.prototype, | |
| 164 | |
| 165 /** @override */ | |
| 166 browsePreload: | |
| 167 'chrome://resources/cr_elements/policy/cr_policy_network_indicator.html', | |
| 168 | |
| 169 /** @override */ | |
| 170 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ | |
| 171 // networking_private and settings_private.js are needed just to define | |
| 172 // types, e.g. chrome.settingsPrivate.NetworkType. | |
| 173 '../../../../../third_party/closure_compiler/externs/networking_private.js', | |
| 174 '../../../../../third_party/closure_compiler/externs/settings_private.js', | |
|
Dan Beam
2017/01/12 18:18:18
actually running externs is a poor practice and is
| |
| 175 'cr_policy_network_indicator_tests.js', | |
| 176 ]), | |
| 177 }; | |
| 178 | |
| 179 TEST_F('CrElementsPolicyNetworkIndicatorTest', 'All', function() { | |
| 180 cr_policy_network_indicator.registerTests(); | |
| 181 mocha.run(); | |
| 182 }); | |
| OLD | NEW |