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

Unified Diff: telemetry/telemetry/story/expectations_unittest.py

Issue 3000413002: [Telemetry] Rename PermanentlyDisableBenchmark to DisableBenchmark. (Closed)
Patch Set: change comments Created 3 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 | « telemetry/telemetry/story/expectations.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/story/expectations_unittest.py
diff --git a/telemetry/telemetry/story/expectations_unittest.py b/telemetry/telemetry/story/expectations_unittest.py
index 5f3723aa94193b324b713988a4887fd52deb114d..05f9a968e97b900c58d16f2897072c57da6ac325 100644
--- a/telemetry/telemetry/story/expectations_unittest.py
+++ b/telemetry/telemetry/story/expectations_unittest.py
@@ -386,15 +386,14 @@ class StoryExpectationsTest(unittest.TestCase):
def testCantDisableAfterInit(self):
e = expectations.StoryExpectations()
with self.assertRaises(AssertionError):
- e.PermanentlyDisableBenchmark(['test'], 'test')
+ e.DisableBenchmark(['test'], 'test')
with self.assertRaises(AssertionError):
e.DisableStory('story', ['platform'], 'reason')
- def testPermanentlyDisableBenchmark(self):
+ def testDisableBenchmark(self):
class FooExpectations(expectations.StoryExpectations):
def SetExpectations(self):
- self.PermanentlyDisableBenchmark(
- [expectations.ALL_WIN], 'crbug.com/123')
+ self.DisableBenchmark([expectations.ALL_WIN], 'crbug.com/123')
e = FooExpectations()
self.platform.SetOSName('win')
« no previous file with comments | « telemetry/telemetry/story/expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698