Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Side by Side Diff: chrome/test/data/webui/settings/settings_autofill_section_browsertest.js

Issue 2651663003: Show human readable origin for Android apps (Closed)
Patch Set: Fix tests and nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 /** @fileoverview Runs the Polymer Autofill Settings tests. */ 5 /** @fileoverview Runs the Polymer Autofill Settings tests. */
6 6
7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */ 7 /** @const {string} Path to root from chrome/test/data/webui/settings/. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Test is run on an individual element that won't have a page language. 116 // Test is run on an individual element that won't have a page language.
117 this.accessibilityAuditConfig.auditRulesToIgnore.push('humanLangMissing'); 117 this.accessibilityAuditConfig.auditRulesToIgnore.push('humanLangMissing');
118 118
119 settings.ensureLazyLoaded(); 119 settings.ensureLazyLoaded();
120 }, 120 },
121 121
122 /** 122 /**
123 * Creates the autofill section for the given lists. 123 * Creates the autofill section for the given lists.
124 * @param {!Array<!chrome.passwordsPrivate.PasswordUiEntry>} passwordList 124 * @param {!Array<!chrome.passwordsPrivate.PasswordUiEntry>} passwordList
125 * @param {!Array<!chrome.passwordsPrivate.ExceptionPair>} exceptionList 125 * @param {!Array<!chrome.passwordsPrivate.ExceptionEntry>} exceptionList
126 * @return {!Object} 126 * @return {!Object}
127 * @private 127 * @private
128 */ 128 */
129 createAutofillSection_: function(addresses, creditCards) { 129 createAutofillSection_: function(addresses, creditCards) {
130 // Override the AutofillManagerImpl for testing. 130 // Override the AutofillManagerImpl for testing.
131 this.autofillManager = new TestAutofillManager(); 131 this.autofillManager = new TestAutofillManager();
132 this.autofillManager.data.addresses = addresses; 132 this.autofillManager.data.addresses = addresses;
133 this.autofillManager.data.creditCards = creditCards; 133 this.autofillManager.data.creditCards = creditCards;
134 AutofillManagerImpl.instance_ = this.autofillManager; 134 AutofillManagerImpl.instance_ = this.autofillManager;
135 135
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 assertEquals(city, cols[0].value); 954 assertEquals(city, cols[0].value);
955 assertEquals(state, cols[1].value); 955 assertEquals(state, cols[1].value);
956 assertEquals(zip, cols[2].value); 956 assertEquals(zip, cols[2].value);
957 }); 957 });
958 }); 958 });
959 }); 959 });
960 }); 960 });
961 961
962 mocha.run(); 962 mocha.run();
963 }); 963 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698