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