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

Unified Diff: tools/telemetry/telemetry/page/page_test_unittest.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/page_test_unittest.py
diff --git a/tools/telemetry/telemetry/page/page_test_unittest.py b/tools/telemetry/telemetry/page/page_test_unittest.py
index 6b68d9d2cd41009b6429515ff3e0eba46ce28cc3..3b2e626a2fcd17a617381a74ce5fb3f4231676a5 100644
--- a/tools/telemetry/telemetry/page/page_test_unittest.py
+++ b/tools/telemetry/telemetry/page/page_test_unittest.py
@@ -1,18 +1,18 @@
# 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.
-import os
+
import unittest
+from telemetry.core import util
from telemetry.page import page as page_module
from telemetry.page import page_test
from telemetry.page.actions import all_page_actions
from telemetry.page.actions import page_action
def _CreatePage(test_filename):
- url = 'file:///' + os.path.join('..', '..', 'unittest_data', test_filename)
- base_dir = os.path.dirname(__file__)
- page = page_module.Page(url, None, base_dir=base_dir)
+ url = 'file:///' + test_filename
+ page = page_module.Page(url, None, base_dir=util.GetUnittestDataDir())
return page
class DoNothingPageTest(page_test.PageTest):
« no previous file with comments | « tools/telemetry/telemetry/page/page_runner_unittest.py ('k') | tools/telemetry/unittest_data/perf_report_output.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698