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