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

Unified Diff: tools/telemetry/telemetry/__init__.py

Issue 17150002: [telemetry] Initial (autogenerated) documentation plus support scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/__init__.py
diff --git a/tools/telemetry/telemetry/__init__.py b/tools/telemetry/telemetry/__init__.py
index 19e6dbf5b32e5afe1420a89a811ed0ed5cbbe032..ca21115a1d4ea556edac91aa13faf69110d61a66 100644
--- a/tools/telemetry/telemetry/__init__.py
+++ b/tools/telemetry/telemetry/__init__.py
@@ -2,3 +2,26 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A library for cross-platform browser tests."""
tonyg 2013/06/18 16:09:11 Let's add some line breaks before and after this p
+import inspect
+import sys
+
+from telemetry.core.browser import Browser
+from telemetry.core.browser_options import BrowserOptions
+from telemetry.core.tab import Tab
+
+from telemetry.page.page_runner import PageRunner
+from telemetry.page.page_measurement import PageMeasurement
tonyg 2013/06/18 16:09:11 alphabetize measurement before runner
+
+__all__ = []
+
+# Find all local vars that are classes or functions and make sure they're in the
+# __all__ array so they're include din docs.
tonyg 2013/06/18 16:09:11 s/include din/included in/
+for x in dir():
+ if x.startswith('_'):
+ continue
+ if x in (inspect, sys):
+ continue
+ m = sys.modules[__name__]
+ if (inspect.isclass(getattr(m, x)) or
+ inspect.isfunction(getattr(m, x))):
+ __all__.append(x)

Powered by Google App Engine
This is Rietveld 408576698