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

Side by Side Diff: chrome/test/pyautolib/plugins_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/perf_snapshot.py ('k') | chrome/test/pyautolib/prefs_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 """Python representation for Chromium Plugins info. 5 """Python representation for Chromium Plugins info.
8 6
9 This is the info available at about:plugins. 7 This is the info available at about:plugins.
10 Obtain one of these from PyUITestSuite::GetPluginsInfo() call. 8 Obtain one of these from PyUITestSuite::GetPluginsInfo() call.
11 9
12 Example: 10 Example:
13 class MyTest(pyauto.PyUITest): 11 class MyTest(pyauto.PyUITest):
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Args: 103 Args:
106 name: the name for which to look for. 104 name: the name for which to look for.
107 105
108 Returns: 106 Returns:
109 a plugin info dictionary 107 a plugin info dictionary
110 None, if not found 108 None, if not found
111 """ 109 """
112 all = self.PluginForName(name) 110 all = self.PluginForName(name)
113 if not all: return None 111 if not all: return None
114 return all[0] 112 return all[0]
115
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/perf_snapshot.py ('k') | chrome/test/pyautolib/prefs_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698