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

Unified Diff: tools/telemetry/telemetry/page/actions/scroll.py

Issue 22989006: [telemetry] Change many relative paths to use util.Get*Dir(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 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/page/actions/scroll.py
diff --git a/tools/telemetry/telemetry/page/actions/scroll.py b/tools/telemetry/telemetry/page/actions/scroll.py
index f7df4ad93e8ee8f71003ac62b53b5ba64e70317d..d044060eee4861599c3cc363abee3acddaa41a9f 100644
--- a/tools/telemetry/telemetry/page/actions/scroll.py
+++ b/tools/telemetry/telemetry/page/actions/scroll.py
@@ -11,9 +11,7 @@ class ScrollAction(page_action.PageAction):
super(ScrollAction, self).__init__(attributes)
def WillRunAction(self, page, tab):
- with open(
- os.path.join(os.path.dirname(__file__),
- 'scroll.js')) as f:
+ with open(os.path.join(os.path.dirname(__file__), 'scroll.js')) as f:
js = f.read()
tab.ExecuteJavaScript(js)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/navigate_unittest.py ('k') | tools/telemetry/telemetry/page/actions/scroll_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698