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

Unified Diff: telemetry/telemetry/benchmark.py

Issue 1921633003: [Telemetry] Rename page_test to legacy_page_test (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Add TODO Created 4 years, 8 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 | « no previous file | telemetry/telemetry/benchmark_run_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/benchmark.py
diff --git a/telemetry/telemetry/benchmark.py b/telemetry/telemetry/benchmark.py
index 44511e76a1147e5ade4991623efaa25ff8018c5c..c67bad5c4a1953b0bef6beb48e9f7e13dc34454c 100644
--- a/telemetry/telemetry/benchmark.py
+++ b/telemetry/telemetry/benchmark.py
@@ -7,7 +7,7 @@ import optparse
from telemetry import decorators
from telemetry.internal import story_runner
from telemetry.internal.util import command_line
-from telemetry.page import page_test
+from telemetry.page import legacy_page_test
from telemetry.web_perf import timeline_based_measurement
Disabled = decorators.Disabled
@@ -215,7 +215,7 @@ class Benchmark(command_line.Command):
|test()| if |test| is a PageTest class.
Otherwise, a TimelineBasedMeasurement instance.
"""
- is_page_test = issubclass(self.test, page_test.PageTest)
+ is_page_test = issubclass(self.test, legacy_page_test.LegacyPageTest)
is_tbm = self.test == timeline_based_measurement.TimelineBasedMeasurement
if not is_page_test and not is_tbm:
raise TypeError('"%s" is not a PageTest or a TimelineBasedMeasurement.' %
« no previous file with comments | « no previous file | telemetry/telemetry/benchmark_run_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698