| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import pyauto_functional # Must be imported before pyauto | 6 import pyauto_functional # Must be imported before pyauto |
| 7 import pyauto | 7 import pyauto |
| 8 | 8 |
| 9 | 9 |
| 10 class PasswordTest(pyauto.PyUITest): | 10 class PasswordTest(pyauto.PyUITest): |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 'signon_realm': 'https://www.example.com/', | 34 'signon_realm': 'https://www.example.com/', |
| 35 'time': 1279650942.0, | 35 'time': 1279650942.0, |
| 36 'origin_url': 'https://www.example.com/login', | 36 'origin_url': 'https://www.example.com/login', |
| 37 'username_element': 'username', | 37 'username_element': 'username', |
| 38 'password_element': 'password', | 38 'password_element': 'password', |
| 39 'submit_element': 'submit', | 39 'submit_element': 'submit', |
| 40 'action_target': 'https://www.example.com/login/', | 40 'action_target': 'https://www.example.com/login/', |
| 41 'blacklist': False } | 41 'blacklist': False } |
| 42 self.assertTrue(self.AddSavedPassword(password1)) | 42 self.assertTrue(self.AddSavedPassword(password1)) |
| 43 self.assertEquals(self.GetSavedPasswords(), [password1]) | 43 self.assertEquals(self.GetSavedPasswords(), [password1]) |
| 44 |
| 45 |
| 44 | 46 |
| 45 | 47 |
| 46 if __name__ == '__main__': | 48 if __name__ == '__main__': |
| 47 pyauto_functional.Main() | 49 pyauto_functional.Main() |
| OLD | NEW |