| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** @fileoverview Material Help page tests. */ |
| 6 |
| 7 GEN_INCLUDE(['settings_page_browsertest.js']); |
| 8 GEN('#include "base/command_line.h"'); |
| 9 |
| 10 /** |
| 11 * @constructor |
| 12 * @extends {SettingsPageBrowserTest} |
| 13 */ |
| 14 function SettingsHelpPageBrowserTest() {} |
| 15 |
| 16 SettingsHelpPageBrowserTest.prototype = { |
| 17 __proto__: SettingsPageBrowserTest.prototype, |
| 18 |
| 19 /** @override */ |
| 20 browsePreload: 'chrome://help/', |
| 21 |
| 22 commandLineSwitches: [{switchName: 'enable-features', |
| 23 switchValue: 'MaterialDesignSettings'}], |
| 24 |
| 25 /** @override */ |
| 26 extraLibraries: PolymerTest.getLibraries(ROOT_PATH), |
| 27 }; |
| 28 |
| 29 TEST_F('SettingsHelpPageBrowserTest', 'Load', function() { |
| 30 // Assign |self| to |this| instead of binding since 'this' in suite() |
| 31 // and test() will be a Mocha 'Suite' or 'Test' instance. |
| 32 var self = this; |
| 33 |
| 34 // Register mocha tests. |
| 35 suite('Help page', function() { |
| 36 test('about section', function() { |
| 37 var page = self.getPage('about'); |
| 38 expectTrue(!!self.getSection(page, 'about')); |
| 39 }); |
| 40 }); |
| 41 |
| 42 // Run all registered tests. |
| 43 mocha.run(); |
| 44 }); |
| OLD | NEW |