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 GEN_INCLUDE(['options_browsertest_base.js']); |
| 6 |
5 /** | 7 /** |
6 * TestFixture for content options WebUI testing. | 8 * TestFixture for content options WebUI testing. |
7 * @extends {testing.Test} | 9 * @extends {testing.Test} |
8 * @constructor | 10 * @constructor |
9 */ | 11 */ |
10 function ContentOptionsWebUITest() {} | 12 function ContentOptionsWebUITest() {} |
11 | 13 |
12 ContentOptionsWebUITest.prototype = { | 14 ContentOptionsWebUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 15 __proto__: OptionsBrowsertestBase.prototype, |
14 | 16 |
15 /** | 17 /** |
16 * Browse to content options. | 18 * Browse to content options. |
| 19 * @override |
17 */ | 20 */ |
18 browsePreload: 'chrome://settings-frame/content', | 21 browsePreload: 'chrome://settings-frame/content', |
19 }; | 22 }; |
20 | 23 |
21 // Test opening the content options has correct location. | 24 // Test opening the content options has correct location. |
22 TEST_F('ContentOptionsWebUITest', 'testOpenContentOptions', function() { | 25 TEST_F('ContentOptionsWebUITest', 'testOpenContentOptions', function() { |
23 assertEquals(this.browsePreload, document.location.href); | 26 assertEquals(this.browsePreload, document.location.href); |
24 }); | 27 }); |
OLD | NEW |