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

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: Disable for not CrOS Created 3 years, 9 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ 220 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
221 'cr_policy_strings.js', 221 'cr_policy_strings.js',
222 'cr_policy_pref_indicator_tests.js', 222 'cr_policy_pref_indicator_tests.js',
223 ]), 223 ]),
224 }; 224 };
225 225
226 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { 226 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() {
227 mocha.run(); 227 mocha.run();
228 }); 228 });
229 229
230 GEN('#if defined(OS_CHROMEOS)');
231 /**
232 * @constructor
233 * @extends {CrElementsBrowserTest}
234 */
235 function CrElementsPolicyNetworkIndicatorTest() {}
236
237 CrElementsPolicyNetworkIndicatorTest.prototype = {
238 __proto__: CrElementsBrowserTest.prototype,
239
240 /** @override */
241 browsePreload:
242 'chrome://resources/cr_elements/policy/cr_policy_network_indicator.html',
243
244 /** @override */
245 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
246 'cr_policy_strings.js',
247 'cr_policy_network_indicator_tests.js',
248 ]),
249 };
250
251 TEST_F('CrElementsPolicyNetworkIndicatorTest', 'All', function() {
252 mocha.run();
253 });
254 GEN('#endif');
255
230 /** 256 /**
231 * @constructor 257 * @constructor
232 * @extends {CrElementsBrowserTest} 258 * @extends {CrElementsBrowserTest}
233 */ 259 */
234 function CrElementsDialogTest() {} 260 function CrElementsDialogTest() {}
235 261
236 CrElementsDialogTest.prototype = { 262 CrElementsDialogTest.prototype = {
237 __proto__: CrElementsBrowserTest.prototype, 263 __proto__: CrElementsBrowserTest.prototype,
238 264
239 /** @override */ 265 /** @override */
240 browsePreload: 'chrome://resources/cr_elements/cr_dialog/cr_dialog.html', 266 browsePreload: 'chrome://resources/cr_elements/cr_dialog/cr_dialog.html',
241 267
242 /** @override */ 268 /** @override */
243 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ 269 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
244 'cr_dialog_test.js', 270 'cr_dialog_test.js',
245 ]), 271 ]),
246 }; 272 };
247 273
248 TEST_F('CrElementsDialogTest', 'All', function() { 274 TEST_F('CrElementsDialogTest', 'All', function() {
249 mocha.run(); 275 mocha.run();
250 }); 276 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698