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

Unified Diff: tools/chrome_proxy/webdriver/decorator_smoke.py

Issue 2826733002: Add Chrome version check decorators (Closed)
Patch Set: 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: tools/chrome_proxy/webdriver/decorator_smoke.py
diff --git a/tools/chrome_proxy/webdriver/decorator_smoke.py b/tools/chrome_proxy/webdriver/decorator_smoke.py
index bf2f82ffa09a6f78fa1118f57aa486a416337647..0441798c350f70e2b0ac49de9a2471357c70b218 100644
--- a/tools/chrome_proxy/webdriver/decorator_smoke.py
+++ b/tools/chrome_proxy/webdriver/decorator_smoke.py
@@ -3,6 +3,8 @@
# found in the LICENSE file.
from decorators import AndroidOnly
+from decorators import ChromeVersionAfterM
+from decorators import ChromeVersionBeforeM
from common import ParseFlags
from common import IntegrationTest
@@ -19,6 +21,15 @@ class DecoratorSmokeTest(IntegrationTest):
if not ParseFlags().android:
self.AndroidOnlyFunction()
+ @ChromeVersionBeforeM(0)
bengr 2017/05/05 17:53:28 Hmm. Maybe call this ChromeMaximumMilestone or Chr
+ def testVersionBeforeDecorator(self):
+ self.fail('This function should not be called when the Chrome Milestone is '
+ 'greater than 0')
+
+ @ChromeVersionAfterM(999999999)
+ def testVersionAfterDecorator(self):
+ self.fail('This function should not be called when the Chrome Milestone is '
+ 'less than 999999999')
if __name__ == '__main__':
IntegrationTest.RunAllTests()
« no previous file with comments | « no previous file | tools/chrome_proxy/webdriver/decorators.py » ('j') | tools/chrome_proxy/webdriver/decorators.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698