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

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

Issue 2737083002: [MD settings] show icon when slider controlled by something (Closed)
Patch Set: unit tests 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 function CrElementsSliderTest() {} 120 function CrElementsSliderTest() {}
121 121
122 CrElementsSliderTest.prototype = { 122 CrElementsSliderTest.prototype = {
123 __proto__: CrElementsBrowserTest.prototype, 123 __proto__: CrElementsBrowserTest.prototype,
124 124
125 /** @override */ 125 /** @override */
126 browsePreload: 'chrome://resources/cr_elements/cr_slider/cr_slider.html', 126 browsePreload: 'chrome://resources/cr_elements/cr_slider/cr_slider.html',
127 127
128 /** @override */ 128 /** @override */
129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ 129 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
130 'settings_private_test_constants.js',
130 'cr_slider_tests.js', 131 'cr_slider_tests.js',
131 ]), 132 ]),
132 }; 133 };
133 134
134 TEST_F('CrElementsSliderTest', 'All', function() { 135 TEST_F('CrElementsSliderTest', 'All', function() {
135 cr_slider.registerTests(); 136 cr_slider.registerTests();
136 mocha.run(); 137 mocha.run();
137 }); 138 });
138 139
139 /** 140 /**
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 212
212 CrElementsPolicyPrefIndicatorTest.prototype = { 213 CrElementsPolicyPrefIndicatorTest.prototype = {
213 __proto__: CrElementsBrowserTest.prototype, 214 __proto__: CrElementsBrowserTest.prototype,
214 215
215 /** @override */ 216 /** @override */
216 browsePreload: 217 browsePreload:
217 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html', 218 'chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html',
218 219
219 /** @override */ 220 /** @override */
220 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ 221 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
222 'settings_private_test_constants.js',
221 'cr_policy_strings.js', 223 'cr_policy_strings.js',
222 'cr_policy_pref_indicator_tests.js', 224 'cr_policy_pref_indicator_tests.js',
223 ]), 225 ]),
224 }; 226 };
225 227
226 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() { 228 TEST_F('CrElementsPolicyPrefIndicatorTest', 'All', function() {
227 mocha.run(); 229 mocha.run();
228 }); 230 });
229 231
230 /** 232 /**
(...skipping 10 matching lines...) Expand all
241 243
242 /** @override */ 244 /** @override */
243 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([ 245 extraLibraries: CrElementsBrowserTest.prototype.extraLibraries.concat([
244 'cr_dialog_test.js', 246 'cr_dialog_test.js',
245 ]), 247 ]),
246 }; 248 };
247 249
248 TEST_F('CrElementsDialogTest', 'All', function() { 250 TEST_F('CrElementsDialogTest', 'All', function() {
249 mocha.run(); 251 mocha.run();
250 }); 252 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698