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

Unified Diff: telemetry/telemetry/benchmark_unittest.py

Issue 2843403005: [Telemetry] Add Expectation module that enables disabling benchmarks/stories (Closed)
Patch Set: [Telemetry] Have benchmarks have story expectations. Created 3 years, 7 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 | « telemetry/telemetry/benchmark.py ('k') | telemetry/telemetry/story/expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/benchmark_unittest.py
diff --git a/telemetry/telemetry/benchmark_unittest.py b/telemetry/telemetry/benchmark_unittest.py
index cb23c6f18eaf4508bda61e026940755d8728ae8c..1710b1f9f32c7c03f361803d556417fb9882bbe8 100644
--- a/telemetry/telemetry/benchmark_unittest.py
+++ b/telemetry/telemetry/benchmark_unittest.py
@@ -159,3 +159,9 @@ class BenchmarkTest(unittest.TestCase):
story_runner.Run = original_run_fn
self.assertTrue(validPredicate[0])
+
+ def testBenchmarkExpectations(self):
+ b = TestBenchmark(story_module.Story(
+ shared_state_class=shared_page_state.SharedPageState))
+ self.assertIsInstance(
+ b.GetExpectations(), story_module.expectations.StoryExpectations)
« no previous file with comments | « telemetry/telemetry/benchmark.py ('k') | telemetry/telemetry/story/expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698