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

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

Issue 1707613002: MD Settings: Start device page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments, rebase Created 4 years, 10 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 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 /** 5 /**
6 * @fileoverview Suite of tests to ensure that settings subpages exist and 6 * @fileoverview Suite of tests to ensure that settings subpages exist and
7 * load without errors. Also outputs approximate load times for each subpage. 7 * load without errors. Also outputs approximate load times for each subpage.
8 */ 8 */
9 9
10 GEN_INCLUDE(['settings_page_browsertest.js']); 10 GEN_INCLUDE(['settings_page_browsertest.js']);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }.bind(this)); 91 }.bind(this));
92 }, 92 },
93 93
94 /** 94 /**
95 * @param {string} id 95 * @param {string} id
96 * @return {boolean} 96 * @return {boolean}
97 */ 97 */
98 includePage: function(id) { 98 includePage: function(id) {
99 if (cr.isChromeOS) 99 if (cr.isChromeOS)
100 return id != 'people' && id != 'defaultBrowser'; 100 return id != 'people' && id != 'defaultBrowser';
101 return id != 'internet' && id != 'users' && id != 'dateTime' && 101 return id != 'internet' && id != 'users' && id != 'device' &&
102 id != 'bluetooth' && id != 'a11y'; 102 id != 'dateTime' && id != 'bluetooth' && id != 'a11y';
103 }, 103 },
104 }; 104 };
105 105
106 /** @constructor @extends {SettingsSubPageBrowserTest} */ 106 /** @constructor @extends {SettingsSubPageBrowserTest} */
107 function SettingsBasicSubPageBrowserTest() { 107 function SettingsBasicSubPageBrowserTest() {
108 var subPages = [ 108 var subPages = [
109 'people', 109 'people',
110 'internet', 110 'internet',
111 'appearance', 111 'appearance',
112 'onStartup', 112 'onStartup',
113 'search', 113 'search',
114 'defaultBrowser' 114 'defaultBrowser',
115 'device'
115 ]; 116 ];
116 117
117 SettingsSubPageBrowserTest.call(this, 'basic', subPages); 118 SettingsSubPageBrowserTest.call(this, 'basic', subPages);
118 } 119 }
119 120
120 SettingsBasicSubPageBrowserTest.prototype = { 121 SettingsBasicSubPageBrowserTest.prototype = {
121 __proto__: SettingsSubPageBrowserTest.prototype, 122 __proto__: SettingsSubPageBrowserTest.prototype,
122 }; 123 };
123 124
124 TEST_F('SettingsBasicSubPageBrowserTest', 'SubPages', function() { 125 TEST_F('SettingsBasicSubPageBrowserTest', 'SubPages', function() {
(...skipping 21 matching lines...) Expand all
146 __proto__: SettingsSubPageBrowserTest.prototype, 147 __proto__: SettingsSubPageBrowserTest.prototype,
147 148
148 /** @override */ 149 /** @override */
149 browsePreload: 'chrome://md-settings/advanced', 150 browsePreload: 'chrome://md-settings/advanced',
150 }; 151 };
151 152
152 TEST_F('SettingsAdvancedSubPageBrowserTest', 'SubPages', function() { 153 TEST_F('SettingsAdvancedSubPageBrowserTest', 'SubPages', function() {
153 suite('Advanced', this.testSubPages.bind(this)); 154 suite('Advanced', this.testSubPages.bind(this));
154 mocha.run(); 155 mocha.run();
155 }); 156 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/device_page_browsertest_chromeos.js ('k') | ui/webui/resources/js/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698