| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 // Selectors below only affect ChromeOS tests. | 432 // Selectors below only affect ChromeOS tests. |
| 433 '#privacy-section > DIV > DIV:nth-of-type(9) > A', | 433 '#privacy-section > DIV > DIV:nth-of-type(9) > A', |
| 434 '#accessibility-learn-more', | 434 '#accessibility-learn-more', |
| 435 ]; | 435 ]; |
| 436 | 436 |
| 437 // Enable when failure is resolved. | 437 // Enable when failure is resolved. |
| 438 // AX_TEXT_04: http://crbug.com/559326 | 438 // AX_TEXT_04: http://crbug.com/559326 |
| 439 this.accessibilityAuditConfig.ignoreSelectors( | 439 this.accessibilityAuditConfig.ignoreSelectors( |
| 440 'linkWithUnclearPurpose', | 440 'linkWithUnclearPurpose', |
| 441 linkWithUnclearPurposeSelectors); | 441 linkWithUnclearPurposeSelectors); |
| 442 |
| 443 var requiredOwnedAriaRoleMissingSelectors = [ |
| 444 '#default-search-engine-list', |
| 445 '#other-search-engine-list', |
| 446 ]; |
| 447 |
| 448 // Enable when failure is resolved. |
| 449 // AX_ARIA_08: http://crbug.com/605689 |
| 450 this.accessibilityAuditConfig.ignoreSelectors( |
| 451 'requiredOwnedAriaRoleMissing', |
| 452 requiredOwnedAriaRoleMissingSelectors); |
| 442 }, | 453 }, |
| 443 | 454 |
| 444 testGenPreamble: function() { | 455 testGenPreamble: function() { |
| 445 // Start with no supervised users managed by this profile. | 456 // Start with no supervised users managed by this profile. |
| 446 GEN(' ClearPref("' + SUPERVISED_USERS_PREF + '");'); | 457 GEN(' ClearPref("' + SUPERVISED_USERS_PREF + '");'); |
| 447 }, | 458 }, |
| 448 | 459 |
| 449 /** | 460 /** |
| 450 * Asserts that two non-nested arrays are equal. The arrays must contain only | 461 * Asserts that two non-nested arrays are equal. The arrays must contain only |
| 451 * plain data types, no nested arrays or other objects. | 462 * plain data types, no nested arrays or other objects. |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 __proto__: OptionsWebUIExtendedTest.prototype, | 946 __proto__: OptionsWebUIExtendedTest.prototype, |
| 936 | 947 |
| 937 /** @override */ | 948 /** @override */ |
| 938 browsePreload: 'chrome://settings-frame/nonexistantPage', | 949 browsePreload: 'chrome://settings-frame/nonexistantPage', |
| 939 }; | 950 }; |
| 940 | 951 |
| 941 TEST_F('OptionsWebUIRedirectTest', 'TestURL', function() { | 952 TEST_F('OptionsWebUIRedirectTest', 'TestURL', function() { |
| 942 assertEquals('chrome://settings-frame/', document.location.href); | 953 assertEquals('chrome://settings-frame/', document.location.href); |
| 943 this.verifyHistory_([''], testDone); | 954 this.verifyHistory_([''], testDone); |
| 944 }); | 955 }); |
| OLD | NEW |