Index: chrome/browser/ui/webui/options/autofill_options_browsertest.js |
diff --git a/chrome/browser/ui/webui/options/autofill_options_browsertest.js b/chrome/browser/ui/webui/options/autofill_options_browsertest.js |
index 6efa92bd7fa9a380b06fedc4e2702843561eed00..1fc4e2811418780162cc09b1a62e0e4f634a3908 100644 |
--- a/chrome/browser/ui/webui/options/autofill_options_browsertest.js |
+++ b/chrome/browser/ui/webui/options/autofill_options_browsertest.js |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+GEN_INCLUDE(['options_browsertest_base.js']); |
+ |
/** |
* Returns the HTML element for the |field|. |
* @param {string} field The field name for the element. |
@@ -30,10 +32,11 @@ function getListSize(list) { |
function AutofillOptionsWebUITest() {} |
AutofillOptionsWebUITest.prototype = { |
- __proto__: testing.Test.prototype, |
+ __proto__: OptionsBrowsertestBase.prototype, |
/** |
* Browse to autofill options. |
+ * @override |
*/ |
browsePreload: 'chrome://settings-frame/autofill', |
}; |
@@ -51,7 +54,7 @@ TEST_F('AutofillOptionsWebUITest', 'testOpenAutofillOptions', function() { |
function AutofillEditAddressWebUITest() {} |
AutofillEditAddressWebUITest.prototype = { |
- __proto__: testing.Test.prototype, |
+ __proto__: OptionsBrowsertestBase.prototype, |
/** @override */ |
browsePreload: 'chrome://settings-frame/autofillEditAddress', |
@@ -70,6 +73,15 @@ TEST_F('AutofillEditAddressWebUITest', 'testInitialFormLayout', function() { |
}); |
TEST_F('AutofillEditAddressWebUITest', 'testLoadAddress', function() { |
+ // Disable a11y audit on Chrome OS and Mac OSX crbug.com/434502 |
+ GEN('#if defined(OS_CHROMEOS)'); |
Dan Beam
2014/11/20 18:35:32
if (cr.isChromeOS || cr.isMac)
|
+ this.disableAccessibilityChecks(); |
+ GEN('#endif'); |
+ |
+ GEN('#if defined(OS_MACOSX)'); |
+ this.disableAccessibilityChecks(); |
+ GEN('#endif'); |
+ |
assertEquals(this.browsePreload, document.location.href); |
var testAddress = { |