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

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, 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
Index: telemetry/telemetry/benchmark_unittest.py
diff --git a/telemetry/telemetry/benchmark_unittest.py b/telemetry/telemetry/benchmark_unittest.py
index cb23c6f18eaf4508bda61e026940755d8728ae8c..438aee3374067b97aba13bdf60e16718ec06179a 100644
--- a/telemetry/telemetry/benchmark_unittest.py
+++ b/telemetry/telemetry/benchmark_unittest.py
@@ -159,3 +159,11 @@ 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))
+ expectations = b.GetExpectations()
+ self.assertTrue(
+ isinstance(
+ expectations, story_module.expectations.StoryExpectations))

Powered by Google App Engine
This is Rietveld 408576698