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

Side by Side Diff: chrome/test/pyautolib/pyauto.py

Issue 7892048: Autofill: Remove fax number completely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """PyAuto: Python Interface to Chromium's Automation Proxy. 7 """PyAuto: Python Interface to Chromium's Automation Proxy.
8 8
9 PyAuto uses swig to expose Automation Proxy interfaces to Python. 9 PyAuto uses swig to expose Automation Proxy interfaces to Python.
10 For complete documentation on the functionality available, 10 For complete documentation on the functionality available,
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 }, 1662 },
1663 { 1663 {
1664 'EMAIL_ADDRESS': ['sue@example.com',], 1664 'EMAIL_ADDRESS': ['sue@example.com',],
1665 'COMPANY_NAME': ['Company X',], 1665 'COMPANY_NAME': ['Company X',],
1666 }] 1666 }]
1667 1667
1668 Other possible keys are: 1668 Other possible keys are:
1669 'NAME_FIRST', 'NAME_MIDDLE', 'NAME_LAST', 'EMAIL_ADDRESS', 1669 'NAME_FIRST', 'NAME_MIDDLE', 'NAME_LAST', 'EMAIL_ADDRESS',
1670 'COMPANY_NAME', 'ADDRESS_HOME_LINE1', 'ADDRESS_HOME_LINE2', 1670 'COMPANY_NAME', 'ADDRESS_HOME_LINE1', 'ADDRESS_HOME_LINE2',
1671 'ADDRESS_HOME_CITY', 'ADDRESS_HOME_STATE', 'ADDRESS_HOME_ZIP', 1671 'ADDRESS_HOME_CITY', 'ADDRESS_HOME_STATE', 'ADDRESS_HOME_ZIP',
1672 'ADDRESS_HOME_COUNTRY', 'PHONE_HOME_WHOLE_NUMBER', 1672 'ADDRESS_HOME_COUNTRY', 'PHONE_HOME_WHOLE_NUMBER'
1673 'PHONE_FAX_WHOLE_NUMBER'
1674 1673
1675 credit_cards: (optional) a list of dictionaries representing each credit 1674 credit_cards: (optional) a list of dictionaries representing each credit
1676 card to add. Example: 1675 card to add. Example:
1677 [{ 1676 [{
1678 'CREDIT_CARD_NAME': 'Bob C. Smith', 1677 'CREDIT_CARD_NAME': 'Bob C. Smith',
1679 'CREDIT_CARD_NUMBER': '5555555555554444', 1678 'CREDIT_CARD_NUMBER': '5555555555554444',
1680 'CREDIT_CARD_EXP_MONTH': '12', 1679 'CREDIT_CARD_EXP_MONTH': '12',
1681 'CREDIT_CARD_EXP_4_DIGIT_YEAR': '2011' 1680 'CREDIT_CARD_EXP_4_DIGIT_YEAR': '2011'
1682 }, 1681 },
1683 { 1682 {
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4303 successful = result.wasSuccessful() 4302 successful = result.wasSuccessful()
4304 if not successful: 4303 if not successful:
4305 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename) 4304 pyauto_tests_file = os.path.join(self.TestsDir(), self._tests_filename)
4306 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \ 4305 print >>sys.stderr, 'Tests can be disabled by editing %s. ' \
4307 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL) 4306 'Ref: %s' % (pyauto_tests_file, _PYAUTO_DOC_URL)
4308 sys.exit(not successful) 4307 sys.exit(not successful)
4309 4308
4310 4309
4311 if __name__ == '__main__': 4310 if __name__ == '__main__':
4312 Main() 4311 Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698