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

Unified Diff: tools/telemetry/telemetry/unittest/__init__.py

Issue 16256028: Add @DisabledTest decorator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: curses Created 7 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
Index: tools/telemetry/telemetry/unittest/__init__.py
diff --git a/tools/telemetry/telemetry/unittest/__init__.py b/tools/telemetry/telemetry/unittest/__init__.py
index 96196cffb2720d69ac46a41dd9bb9f4005bcfa9e..053e441dc6367e6ac2d61ba6077c60c4007bb423 100644
--- a/tools/telemetry/telemetry/unittest/__init__.py
+++ b/tools/telemetry/telemetry/unittest/__init__.py
@@ -1,3 +1,12 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+def RequiresBrowserOfType(*types):
+ def wrap(func):
+ func._requires_browser_types = types
+ return func
+ return wrap
+
+def DisabledTest(func):
+ func._disabled_test = True
+ return func

Powered by Google App Engine
This is Rietveld 408576698