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

Unified Diff: chrome/test/functional/autofill.py

Issue 6992049: Updated and Added Autofill tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/autofill.py
===================================================================
--- chrome/test/functional/autofill.py (revision 86541)
+++ chrome/test/functional/autofill.py (working copy)
@@ -73,6 +73,39 @@
self.GetAutofillProfile()['credit_cards'],
msg='Autofill credit card data does not match.')
+ def testSegmentNumbersNotSupportedInDOMUI(self):
+ """Test segmented phone/fax numbers no longer supported in DOM UI.
+
+ Phone and fax |COUNTRY_CODE| and |CITY_CODE| are only supported when
+ aggregating a web form and no longer processed in parts through the DOM UI
+ (when adding profiles through prefs settings).
+ """
+ profile_input = [{'NAME_FIRST': 'John',
+ 'NAME_LAST': 'Doe',
+ 'ADDRESS_HOME_LINE1': '123 H St.',
+ 'ADDRESS_HOME_CITY': 'San Jose',
+ 'ADDRESS_HOME_STATE': 'CA',
+ 'ADDRESS_HOME_ZIP': '95110',
+ 'ADDRESS_HOME_COUNTRY': 'China',
+ 'PHONE_HOME_COUNTRY_CODE': '86',
+ 'PHONE_HOME_CITY_CODE': '108',
+ 'PHONE_HOME_NUMBER': '8828000',
+ 'PHONE_FAX_COUNTRY_CODE': '86',
+ 'PHONE_FAX_CITY_CODE': '108',
+ 'PHONE_FAX_NUMBER': '8828000'}]
+
+ profile_expected = [{'NAME_FIRST': 'John',
+ 'NAME_LATE': 'Doe',
+ 'ADDRESS_HOME_LINE1': '123 H St.',
+ 'ADDRESS_HOME_CITY': 'San Jose',
+ 'ADDRESS_HOME_STATE': 'CA',
+ 'ADDRESS_HOME_ZIP': '95110',
+ 'ADDRESS_HOME_COUNTRY': 'China'}]
+
+ self.FillAutofillProfile(profiles=profile_input)
+ self.assertEqual(profile_expected, self.GetAutofillProfile()['profiles'],
+ msg='Segmented phone/fax numbers supported in DOM UI.')
+
def testGetProfilesEmpty(self):
"""Test getting profiles when none have been filled."""
profile = self.GetAutofillProfile()
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698