| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 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, 'on-startup')); | 42 expectTrue(!!self.getSection(page, 'onStartup')); |
| 43 expectTrue(!!self.getSection(page, 'search')); | 43 expectTrue(!!self.getSection(page, 'search')); |
| 44 if (!cr.isChromeOS) { | 44 if (!cr.isChromeOS) { |
| 45 expectTrue(!!self.getSection(page, 'people')); | 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')); | 49 expectTrue(!!self.getSection(page, 'users')); |
| 50 } | 50 } |
| 51 }); | 51 }); |
| 52 | 52 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 63 expectTrue(!!self.getSection(page, 'dateTime')); | 63 expectTrue(!!self.getSection(page, 'dateTime')); |
| 64 expectTrue(!!self.getSection(page, 'bluetooth')); | 64 expectTrue(!!self.getSection(page, 'bluetooth')); |
| 65 expectTrue(!!self.getSection(page, 'a11y')); | 65 expectTrue(!!self.getSection(page, 'a11y')); |
| 66 } | 66 } |
| 67 }); | 67 }); |
| 68 }); | 68 }); |
| 69 | 69 |
| 70 // Run all registered tests. | 70 // Run all registered tests. |
| 71 mocha.run(); | 71 mocha.run(); |
| 72 }); | 72 }); |
| OLD | NEW |