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