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 content settings exception area WebUI testing. | 6 * TestFixture for content settings exception area WebUI testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 **/ | 9 */ |
10 function ContentSettingsExceptionAreaWebUITest() {} | 10 function ContentSettingsExceptionAreaWebUITest() {} |
11 | 11 |
12 ContentSettingsExceptionAreaWebUITest.prototype = { | 12 ContentSettingsExceptionAreaWebUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
14 | 14 |
15 /** | 15 /** |
16 * Browse to the content settings exception area. | 16 * Browse to the content settings exception area. |
17 **/ | 17 */ |
18 browsePreload: 'chrome://settings-frame/contentExceptions', | 18 browsePreload: 'chrome://settings-frame/contentExceptions', |
19 }; | 19 }; |
20 | 20 |
21 GEN('#if defined(OS_CHROMEOS)'); | 21 GEN('#if defined(OS_CHROMEOS)'); |
22 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + | 22 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + |
23 'DISABLED_testOpenContentSettingsExceptionArea'); | 23 'DISABLED_testOpenContentSettingsExceptionArea'); |
24 GEN('#else'); | 24 GEN('#else'); |
25 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + | 25 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + |
26 'testOpenContentSettingsExceptionArea'); | 26 'testOpenContentSettingsExceptionArea'); |
27 GEN('#endif // defined(OS_CHROMEOS)'); | 27 GEN('#endif // defined(OS_CHROMEOS)'); |
28 // Test opening the content settings exception area has correct location. | 28 // Test opening the content settings exception area has correct location. |
29 TEST_F('ContentSettingsExceptionAreaWebUITest', | 29 TEST_F('ContentSettingsExceptionAreaWebUITest', |
30 'MAYBE_testOpenContentSettingsExceptionArea', | 30 'MAYBE_testOpenContentSettingsExceptionArea', |
31 function() { | 31 function() { |
32 assertEquals(this.browsePreload, document.location.href); | 32 assertEquals(this.browsePreload, document.location.href); |
33 }); | 33 }); |
OLD | NEW |