| 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 logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import pickle | 8 import pickle |
| 9 | 9 |
| 10 import autofill_dataset_converter | |
| 11 import pyauto_functional # Must be imported before pyauto | 10 import pyauto_functional # Must be imported before pyauto |
| 12 import pyauto | 11 import pyauto |
| 13 | 12 |
| 14 | 13 |
| 15 class AutoFillTest(pyauto.PyUITest): | 14 class AutoFillTest(pyauto.PyUITest): |
| 16 """Tests that autofill works correctly""" | 15 """Tests that autofill works correctly""" |
| 17 | 16 |
| 18 def Debug(self): | 17 def Debug(self): |
| 19 """Test method for experimentation. | 18 """Test method for experimentation. |
| 20 | 19 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 merged_profile = os.path.join(self.DataDir(), 'autofill', | 211 merged_profile = os.path.join(self.DataDir(), 'autofill', |
| 213 'merged-profiles.txt') | 212 'merged-profiles.txt') |
| 214 profile_dict = self.GetAutoFillProfile()['profiles'] | 213 profile_dict = self.GetAutoFillProfile()['profiles'] |
| 215 output = open(merged_profile, 'wb') | 214 output = open(merged_profile, 'wb') |
| 216 pickle.dump(profile_dict, output) | 215 pickle.dump(profile_dict, output) |
| 217 output.close() | 216 output.close() |
| 218 | 217 |
| 219 | 218 |
| 220 if __name__ == '__main__': | 219 if __name__ == '__main__': |
| 221 pyauto_functional.Main() | 220 pyauto_functional.Main() |
| OLD | NEW |