Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: chrome/test/data/webui/cr_elements/cr_elements_browsertest.js

Issue 2625213002: WebUI: Add cr_policy_network_indicator_tests.js (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698