OLD | NEW |
1 #!/usr/bin/python | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 | |
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
6 | 4 |
7 """History: python representation for history. | 5 """History: python representation for history. |
8 | 6 |
9 Obtain one of these from PyUITestSuite::GetHistoryInfo() call. | 7 Obtain one of these from PyUITestSuite::GetHistoryInfo() call. |
10 | 8 |
11 Example: | 9 Example: |
12 class MyTest(pyauto.PyUITest): | 10 class MyTest(pyauto.PyUITest): |
13 def testBasic(self): | 11 def testBasic(self): |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 71 |
74 The snippet attribute will be empty in most cases. If GetHistoryInfo() is | 72 The snippet attribute will be empty in most cases. If GetHistoryInfo() is |
75 provided a non-empty search_text arg, the snippet attribute will contain the | 73 provided a non-empty search_text arg, the snippet attribute will contain the |
76 snippet as it would be visible when searching for that text in the | 74 snippet as it would be visible when searching for that text in the |
77 chrome://history/ UI. | 75 chrome://history/ UI. |
78 | 76 |
79 Returns: | 77 Returns: |
80 [item1, item2, ...] | 78 [item1, item2, ...] |
81 """ | 79 """ |
82 return self.historydict.get('history', []) | 80 return self.historydict.get('history', []) |
OLD | NEW |