OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * TestFixture for extension settings WebUI testing. | 6 * TestFixture for extension settings WebUI testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function HelpPageWebUITest() {} | 10 function HelpPageWebUITest() {} |
11 | 11 |
12 HelpPageWebUITest.prototype = { | 12 HelpPageWebUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
14 | 14 |
15 /** OVERRIDE */ | |
Dan Beam
2014/09/24 18:39:00
/** @override */
hcarmona
2014/09/24 20:55:18
Done.
| |
16 runAccessibilityChecks: true, | |
17 | |
18 /** OVERRIDE */ | |
19 accessibilityIssuesAreErrors: true, | |
20 | |
15 browsePreload: 'chrome://help-frame/', | 21 browsePreload: 'chrome://help-frame/', |
16 }; | 22 }; |
17 | 23 |
18 // Test opening extension settings has correct location. | 24 // Test opening extension settings has correct location. |
19 TEST_F('HelpPageWebUITest', 'testOpenHelpPage', function() { | 25 TEST_F('HelpPageWebUITest', 'testOpenHelpPage', function() { |
20 assertEquals(this.browsePreload, document.location.href); | 26 assertEquals(this.browsePreload, document.location.href); |
21 }); | 27 }); |
22 | 28 |
23 GEN('#if defined(OS_LINUX) || defined(GOOGLE_CHROME_BUILD)'); | 29 GEN('#if defined(OS_LINUX) || defined(GOOGLE_CHROME_BUILD)'); |
24 | 30 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
82 help.HelpPage.setUpdateStatus('nearly_updated', ''); | 88 help.HelpPage.setUpdateStatus('nearly_updated', ''); |
83 expectFalse(container.hidden); | 89 expectFalse(container.hidden); |
84 expectTrue(update.hidden); | 90 expectTrue(update.hidden); |
85 | 91 |
86 help.HelpPage.setUpdateStatus('updated', ''); | 92 help.HelpPage.setUpdateStatus('updated', ''); |
87 expectFalse(container.hidden); | 93 expectFalse(container.hidden); |
88 expectTrue(!update.hidden && update.disabled); | 94 expectTrue(!update.hidden && update.disabled); |
89 }); | 95 }); |
90 | 96 |
91 GEN('#endif'); | 97 GEN('#endif'); |
OLD | NEW |