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

Side by Side Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 2437183002: [MD settings] content site list toggles (Closed)
Patch Set: review changes Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 Runs the Polymer Settings tests. */ 5 /** @fileoverview Runs the Polymer Settings tests. */
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 57 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
58 'checkbox_tests.js', 58 'checkbox_tests.js',
59 ]), 59 ]),
60 }; 60 };
61 61
62 TEST_F('CrSettingsCheckboxTest', 'All', function() { 62 TEST_F('CrSettingsCheckboxTest', 'All', function() {
63 settings_checkbox.registerTests(); 63 settings_checkbox.registerTests();
64 mocha.run(); 64 mocha.run();
65 }); 65 });
66 66
67 function CrSettingsToggleButtonTest() {}
68
69 CrSettingsToggleButtonTest.prototype = {
70 __proto__: CrSettingsBrowserTest.prototype,
71
72 /** @override */
73 browsePreload: 'chrome://md-settings/controls/settings_toggle_button.html',
74
75 /** @override */
76 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
77 'settings_toggle_button_tests.js',
78 ]),
79 };
80
81 TEST_F('CrSettingsToggleButtonTest', 'All', function() {
82 settings_toggle_button.registerTests();
83 mocha.run();
84 });
85
67 function CrSettingsDropdownMenuTest() {} 86 function CrSettingsDropdownMenuTest() {}
68 87
69 CrSettingsDropdownMenuTest.prototype = { 88 CrSettingsDropdownMenuTest.prototype = {
70 __proto__: CrSettingsBrowserTest.prototype, 89 __proto__: CrSettingsBrowserTest.prototype,
71 90
72 /** @override */ 91 /** @override */
73 browsePreload: 'chrome://md-settings/controls/settings_dropdown_menu.html', 92 browsePreload: 'chrome://md-settings/controls/settings_dropdown_menu.html',
74 93
75 /** @override */ 94 /** @override */
76 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 95 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 browsePreload: 'chrome://md-settings/settings_action_menu.html', 981 browsePreload: 'chrome://md-settings/settings_action_menu.html',
963 982
964 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 983 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
965 'settings_action_menu_test.js', 984 'settings_action_menu_test.js',
966 ]), 985 ]),
967 }; 986 };
968 987
969 TEST_F('CrSettingsActionMenuTest', 'All', function() { 988 TEST_F('CrSettingsActionMenuTest', 'All', function() {
970 mocha.run(); 989 mocha.run();
971 }); 990 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698