| Index: tools/telemetry/telemetry/__init__.py
|
| diff --git a/tools/telemetry/telemetry/__init__.py b/tools/telemetry/telemetry/__init__.py
|
| index 19e6dbf5b32e5afe1420a89a811ed0ed5cbbe032..f3c162fcf10315ac2b1b98b39c6297431d11ce4e 100644
|
| --- a/tools/telemetry/telemetry/__init__.py
|
| +++ b/tools/telemetry/telemetry/__init__.py
|
| @@ -1,4 +1,29 @@
|
| -# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| # 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."""
|
| +"""
|
| +A library for cross-platform browser tests.
|
| +"""
|
| +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_measurement import PageMeasurement
|
| +from telemetry.page.page_runner import Run as RunPage
|
| +
|
| +__all__ = []
|
| +
|
| +# Find all local vars that are classes or functions and make sure they're in the
|
| +# __all__ array so they're included in docs.
|
| +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)
|
|
|