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

Unified Diff: chrome/test/data/webui/settings/settings_autofill_section_browsertest.js

Issue 2082863002: [MD Settings] Allow saving addresses in material design settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@address-edit-dialog.gitbr
Patch Set: nits Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
index ab017bacdda6d3625b0dd8448f1bebbdbd3a45ad..1bde01aeeb95ce56239254acfef6416e5d22b4cb 100644
--- a/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_autofill_section_browsertest.js
@@ -428,6 +428,29 @@ TEST_F('SettingsAutofillSectionBrowserTest', 'AddressTests', function() {
});
});
+ test('verifyPhoneAndEmailAreRemoved', function() {
+ var address = FakeDataMaker.emptyAddressEntry();
+
+ var phoneNumber = '(555) 555-5555';
+ var emailAddress = 'no-reply@chromium.org';
+
+ address.phoneNumbers = [phoneNumber];
+ address.emailAddresses = [emailAddress];
+
+ return self.createAddressDialog_(address).then(function(dialog) {
+ assertEquals(phoneNumber, dialog.$.phoneInput.value);
+ assertEquals(emailAddress, dialog.$.emailInput.value);
+
+ dialog.$.phoneInput.value = '';
+ dialog.$.emailInput.value = '';
+
+ Polymer.dom.flush();
+
+ assertEquals(0, address.phoneNumbers.length);
+ assertEquals(0, address.emailAddresses.length);
+ });
+ });
+
// Test will set a value of 'foo' in each text field and verify that the
// save button is enabled, then it will clear the field and verify that the
// save button is disabled. Test passes after all elements have been tested.
« no previous file with comments | « chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698