| 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 browser options WebUI testing. | 6 * TestFixture for browser options WebUI testing. |
| 7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
| 8 * @constructor | 8 * @constructor |
| 9 */ | 9 */ |
| 10 function BrowserOptionsWebUITest() {} | 10 function BrowserOptionsWebUITest() {} |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 /** | 32 /** |
| 33 * @extends {testing.Test} | 33 * @extends {testing.Test} |
| 34 * @constructor | 34 * @constructor |
| 35 */ | 35 */ |
| 36 function BrowserOptionsFrameWebUITest() {} | 36 function BrowserOptionsFrameWebUITest() {} |
| 37 | 37 |
| 38 BrowserOptionsFrameWebUITest.prototype = { | 38 BrowserOptionsFrameWebUITest.prototype = { |
| 39 __proto__: testing.Test.prototype, | 39 __proto__: testing.Test.prototype, |
| 40 | 40 |
| 41 /** @override */ | 41 /** @override */ |
| 42 browsePreload: 'chrome://settings-frame/settings', | 42 browsePreload: 'chrome://settings-frame/', |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 TEST_F('BrowserOptionsFrameWebUITest', 'testAdvancedSettingsHiddenByDefault', | 45 TEST_F('BrowserOptionsFrameWebUITest', 'testAdvancedSettingsHiddenByDefault', |
| 46 function() { | 46 function() { |
| 47 assertEquals(this.browsePreload, document.location.href); | 47 assertEquals(this.browsePreload, document.location.href); |
| 48 expectTrue($('advanced-settings').hidden); | 48 expectTrue($('advanced-settings').hidden); |
| 49 }); | 49 }); |
| 50 | 50 |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @extends {testing.Test} | 53 * @extends {testing.Test} |
| 54 * @constructor | 54 * @constructor |
| 55 */ | 55 */ |
| 56 function AdvancedSettingsWebUITest() {} | 56 function AdvancedSettingsWebUITest() {} |
| 57 | 57 |
| 58 AdvancedSettingsWebUITest.prototype = { | 58 AdvancedSettingsWebUITest.prototype = { |
| 59 __proto__: testing.Test.prototype, | 59 __proto__: testing.Test.prototype, |
| 60 | 60 |
| 61 /** @override */ | 61 /** @override */ |
| 62 browsePreload: 'chrome://settings-frame/autofill', | 62 browsePreload: 'chrome://settings-frame/autofill', |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 TEST_F('AdvancedSettingsWebUITest', 'testAdvancedSettingsShown', function() { | 65 TEST_F('AdvancedSettingsWebUITest', 'testAdvancedSettingsShown', function() { |
| 66 assertEquals(this.browsePreload, document.location.href); | 66 assertEquals(this.browsePreload, document.location.href); |
| 67 expectFalse($('advanced-settings').hidden); | 67 expectFalse($('advanced-settings').hidden); |
| 68 }); | 68 }); |
| OLD | NEW |