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

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

Issue 1503403004: Settings People Rewrite: Move users_page as subpage of People. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0053-people-rename-a-bunch-of-stuff
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/resources/settings/users_page/users_page.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Suite of tests for the Settings main page. */ 5 /** @fileoverview Suite of tests for the Settings main page. */
6 6
7 GEN_INCLUDE(['settings_page_browsertest.js']); 7 GEN_INCLUDE(['settings_page_browsertest.js']);
8 8
9 /** 9 /**
10 * @constructor 10 * @constructor
(...skipping 22 matching lines...) Expand all
33 // Register mocha tests. 33 // Register mocha tests.
34 suite('SettingsPage', function() { 34 suite('SettingsPage', function() {
35 test('load page', function() { 35 test('load page', function() {
36 // This will fail if there are any asserts or errors in the Settings page. 36 // This will fail if there are any asserts or errors in the Settings page.
37 }); 37 });
38 38
39 test('basic pages', function() { 39 test('basic pages', function() {
40 var page = self.getPage('basic'); 40 var page = self.getPage('basic');
41 expectTrue(!!self.getSection(page, 'appearance')); 41 expectTrue(!!self.getSection(page, 'appearance'));
42 expectTrue(!!self.getSection(page, 'onStartup')); 42 expectTrue(!!self.getSection(page, 'onStartup'));
43 expectTrue(!!self.getSection(page, 'people'));
43 expectTrue(!!self.getSection(page, 'search')); 44 expectTrue(!!self.getSection(page, 'search'));
44 if (!cr.isChromeOS) { 45 if (!cr.isChromeOS) {
45 expectTrue(!!self.getSection(page, 'people'));
46 expectTrue(!!self.getSection(page, 'defaultBrowser')); 46 expectTrue(!!self.getSection(page, 'defaultBrowser'));
47 } else { 47 } else {
48 expectTrue(!!self.getSection(page, 'internet')); 48 expectTrue(!!self.getSection(page, 'internet'));
49 expectTrue(!!self.getSection(page, 'users'));
50 } 49 }
51 }); 50 });
52 51
53 test('advanced pages', function() { 52 test('advanced pages', function() {
54 var page = self.getPage('advanced'); 53 var page = self.getPage('advanced');
55 expectTrue(!!self.getSection(page, 'location')); 54 expectTrue(!!self.getSection(page, 'location'));
56 expectTrue(!!self.getSection(page, 'privacy')); 55 expectTrue(!!self.getSection(page, 'privacy'));
57 expectTrue(!!self.getSection(page, 'passwordsAndForms')); 56 expectTrue(!!self.getSection(page, 'passwordsAndForms'));
58 expectTrue(!!self.getSection(page, 'languages')); 57 expectTrue(!!self.getSection(page, 'languages'));
59 expectTrue(!!self.getSection(page, 'downloads')); 58 expectTrue(!!self.getSection(page, 'downloads'));
60 expectTrue(!!self.getSection(page, 'reset')); 59 expectTrue(!!self.getSection(page, 'reset'));
61 60
62 if (cr.isChromeOS) { 61 if (cr.isChromeOS) {
63 expectTrue(!!self.getSection(page, 'dateTime')); 62 expectTrue(!!self.getSection(page, 'dateTime'));
64 expectTrue(!!self.getSection(page, 'bluetooth')); 63 expectTrue(!!self.getSection(page, 'bluetooth'));
65 expectTrue(!!self.getSection(page, 'a11y')); 64 expectTrue(!!self.getSection(page, 'a11y'));
66 } 65 }
67 }); 66 });
68 }); 67 });
69 68
70 // Run all registered tests. 69 // Run all registered tests.
71 mocha.run(); 70 mocha.run();
72 }); 71 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/users_page/users_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698