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