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

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

Issue 8680018: Fix python scripts in src/chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 9 years 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
« no previous file with comments | « chrome/test/pyautolib/generate_docs.py ('k') | chrome/test/pyautolib/omnibox_info.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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', [])
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/generate_docs.py ('k') | chrome/test/pyautolib/omnibox_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698