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 options WebUI testing. | 6 * TestFixture for content options WebUI testing. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function ContentOptionsWebUITest() {} | 10 function ContentOptionsWebUITest() {} |
11 | 11 |
12 ContentOptionsWebUITest.prototype = { | 12 ContentOptionsWebUITest.prototype = { |
13 __proto__: testing.Test.prototype, | 13 __proto__: testing.Test.prototype, |
14 | 14 |
15 /** | 15 /** |
16 * Browse to content options. | 16 * Browse to content options. |
17 * @override | |
17 */ | 18 */ |
18 browsePreload: 'chrome://settings-frame/content', | 19 browsePreload: 'chrome://settings-frame/content', |
20 | |
21 /** @override */ | |
22 runAccessibilityChecks: true, | |
23 | |
24 /** @override */ | |
25 accessibilityIssuesAreErrors: true, | |
26 | |
27 /** @override */ | |
28 setUp: function() { | |
29 // user-image-stream is a streaming video element used for capturing a | |
30 // user image. | |
31 this.accessibilityAuditConfig.ignoreSelectors('videoWithoutCaptions', | |
Dan Beam
2014/11/07 05:43:19
might be useful to somehow make a class that does
| |
32 '.user-image-stream'); | |
33 }, | |
19 }; | 34 }; |
20 | 35 |
21 // Test opening the content options has correct location. | 36 // Test opening the content options has correct location. |
22 TEST_F('ContentOptionsWebUITest', 'testOpenContentOptions', function() { | 37 TEST_F('ContentOptionsWebUITest', 'testOpenContentOptions', function() { |
23 assertEquals(this.browsePreload, document.location.href); | 38 assertEquals(this.browsePreload, document.location.href); |
24 }); | 39 }); |
OLD | NEW |