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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py

Issue 2206913003: Remove webkitpy/common/config/urls.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/common/config/urls.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py b/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
index 81eefb7bedde0c504fab84dff86166e8dcd743e7..a968a538c72bfb9febabf8b41fa434d62da2841a 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py
@@ -37,7 +37,6 @@ import datetime
from webkitpy.common import find_files
from webkitpy.common.checkout.scm.detection import SCMDetector
-from webkitpy.common.config.urls import view_source_url
from webkitpy.common.host import Host
from webkitpy.common.net.file_uploader import FileUploader
from webkitpy.performance_tests.perftest import PerfTestFactory
@@ -294,7 +293,8 @@ class PerfTestsRunner(object):
path = test.test_name_without_file_extension().split('/')
for i in range(0, len(path)):
is_last_token = i + 1 == len(path)
- url = view_source_url('PerformanceTests/' + (test.test_name() if is_last_token else '/'.join(path[0:i + 1])))
+ url = self.view_source_url(
+ 'PerformanceTests/' + (test.test_name() if is_last_token else '/'.join(path[0:i + 1])))
tests.setdefault(path[i], {'url': url})
current_test = tests[path[i]]
if is_last_token:
@@ -308,6 +308,10 @@ class PerfTestsRunner(object):
return contents
@staticmethod
+ def view_source_url(path_from_blink):
+ return "https://src.chromium.org/viewvc/blink/trunk/%s" % path_from_blink
qyearsley 2016/08/03 18:13:53 Also, it seems likely that this should be updated
Dirk Pranke 2016/08/09 00:05:15 whichever you like. I'd probably do it in this CL.
qyearsley 2016/08/09 17:22:10 Done
+
+ @staticmethod
def _datetime_in_ES5_compatible_iso_format(datetime):
return datetime.strftime('%Y-%m-%dT%H:%M:%S.%f')
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/common/config/urls.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698