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

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

Issue 2655043005: MD Settings: Bluetooth: Move device list to subpage (Closed)
Patch Set: Fix clang, ES6 Created 3 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 /** @fileoverview Suite of tests for the Settings basic page. */ 5 /** @fileoverview Suite of tests for the Settings basic 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // This will fail if there are any asserts or errors in the Settings page. 84 // This will fail if there are any asserts or errors in the Settings page.
85 }); 85 });
86 86
87 test('basic pages', function() { 87 test('basic pages', function() {
88 var page = self.getPage('basic'); 88 var page = self.getPage('basic');
89 var sections = ['appearance', 'onStartup', 'people', 'search']; 89 var sections = ['appearance', 'onStartup', 'people', 'search'];
90 expectTrue(!!self.getSection(page, 'appearance')); 90 expectTrue(!!self.getSection(page, 'appearance'));
91 if (!cr.isChromeOS) 91 if (!cr.isChromeOS)
92 sections.push('defaultBrowser'); 92 sections.push('defaultBrowser');
93 else 93 else
94 sections = sections.concat(['internet', 'device']); 94 sections = sections.concat(['internet', 'bluetooth', 'device']);
95 95
96 for (var i = 0; i < sections.length; i++) { 96 for (var i = 0; i < sections.length; i++) {
97 var section = self.getSection(page, sections[i]); 97 var section = self.getSection(page, sections[i]);
98 expectTrue(!!section); 98 expectTrue(!!section);
99 self.verifySubpagesHidden(section); 99 self.verifySubpagesHidden(section);
100 } 100 }
101 }); 101 });
102 102
103 test('scroll to section', function() { 103 test('scroll to section', function() {
104 // Setting the page and section will cause a scrollToSection_. 104 // Setting the page and section will cause a scrollToSection_.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 assertNotEquals(0, page.scroller.scrollTop); 174 assertNotEquals(0, page.scroller.scrollTop);
175 175
176 settings.navigateTo(settings.Route.ABOUT); 176 settings.navigateTo(settings.Route.ABOUT);
177 assertEquals(0, page.scroller.scrollTop); 177 assertEquals(0, page.scroller.scrollTop);
178 }); 178 });
179 }); 179 });
180 180
181 // Run all registered tests. 181 // Run all registered tests.
182 mocha.run(); 182 mocha.run();
183 }); 183 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698