| 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 GEN('#include "chrome/browser/ui/webui/options/options_browsertest.h"'); | 6 GEN('#include "chrome/browser/ui/webui/options/options_browsertest.h"'); |
| 7 | 7 |
| 8 /** @const */ var SUPERVISED_USERS_PREF = 'profile.managed_users'; | 8 /** @const */ var SUPERVISED_USERS_PREF = 'profile.managed_users'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 '#languages-section > .settings-row > A', | 96 '#languages-section > .settings-row > A', |
| 97 '#cloudprint-options-mdns > .settings-row > A', | 97 '#cloudprint-options-mdns > .settings-row > A', |
| 98 '#do-not-track-confirm-overlay > .action-area > .hbox.stretch > A', | 98 '#do-not-track-confirm-overlay > .action-area > .hbox.stretch > A', |
| 99 ]; | 99 ]; |
| 100 | 100 |
| 101 // Enable when failure is resolved. | 101 // Enable when failure is resolved. |
| 102 // AX_TEXT_04: http://crbug.com/559318 | 102 // AX_TEXT_04: http://crbug.com/559318 |
| 103 this.accessibilityAuditConfig.ignoreSelectors( | 103 this.accessibilityAuditConfig.ignoreSelectors( |
| 104 'linkWithUnclearPurpose', | 104 'linkWithUnclearPurpose', |
| 105 linkWithUnclearPurposeSelectors); | 105 linkWithUnclearPurposeSelectors); |
| 106 |
| 107 // Causes testDefaultZoomFactor to flake. See http://crbug.com/611233. |
| 108 var requiredOwnedAriaRoleMissingSelectors = [ |
| 109 '#default-search-engine-list', |
| 110 '#other-search-engine-list', |
| 111 ]; |
| 112 |
| 113 // Enable when failure is resolved. |
| 114 // AX_ARIA_08: http://crbug.com/606657 |
| 115 this.accessibilityAuditConfig.ignoreSelectors( |
| 116 'requiredOwnedAriaRoleMissing', |
| 117 requiredOwnedAriaRoleMissingSelectors); |
| 106 }, | 118 }, |
| 107 }; | 119 }; |
| 108 | 120 |
| 109 /** | 121 /** |
| 110 * Wait for all targets to be hidden. | 122 * Wait for all targets to be hidden. |
| 111 * @param {Array<Element>} targets | 123 * @param {Array<Element>} targets |
| 112 */ | 124 */ |
| 113 function waitUntilHidden(targets) { | 125 function waitUntilHidden(targets) { |
| 114 function isHidden(el) { return el.hidden; } | 126 function isHidden(el) { return el.hidden; } |
| 115 function ensureTransition(el) { ensureTransitionEndEvent(el, 500); } | 127 function ensureTransition(el) { ensureTransitionEndEvent(el, 500); } |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 __proto__: OptionsWebUIExtendedTest.prototype, | 958 __proto__: OptionsWebUIExtendedTest.prototype, |
| 947 | 959 |
| 948 /** @override */ | 960 /** @override */ |
| 949 browsePreload: 'chrome://settings-frame/nonexistantPage', | 961 browsePreload: 'chrome://settings-frame/nonexistantPage', |
| 950 }; | 962 }; |
| 951 | 963 |
| 952 TEST_F('OptionsWebUIRedirectTest', 'TestURL', function() { | 964 TEST_F('OptionsWebUIRedirectTest', 'TestURL', function() { |
| 953 assertEquals('chrome://settings-frame/', document.location.href); | 965 assertEquals('chrome://settings-frame/', document.location.href); |
| 954 this.verifyHistory_([''], testDone); | 966 this.verifyHistory_([''], testDone); |
| 955 }); | 967 }); |
| OLD | NEW |