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

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

Issue 2834813003: Add slow test decorator (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/decorators.py
diff --git a/tools/chrome_proxy/webdriver/decorators.py b/tools/chrome_proxy/webdriver/decorators.py
index c04055febc8a641e8aae6a77c1ecfee5480d0d44..bfe30748fd604801f7d984b18d1144c7e1d2acdb 100644
--- a/tools/chrome_proxy/webdriver/decorators.py
+++ b/tools/chrome_proxy/webdriver/decorators.py
@@ -117,3 +117,11 @@ def ChromeVersionAfterM(milestone):
args[0].skipTest('This test does not run below M%d.' % milestone)
return wrapper
return puesdo_wrapper
+
+def Slow(func):
+ def wrapper(*args, **kwargs):
+ if ParseFlags().skip_slow:
+ args[0].skipTest('Skipping slow test.')
+ else:
+ func(*args, **kwargs)
+ return wrapper
« no previous file with comments | « tools/chrome_proxy/webdriver/compression_regression.py ('k') | tools/chrome_proxy/webdriver/reenable_after_bypass.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698