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

Unified Diff: tools/telemetry/telemetry/page/actions/action_runner_unittest.py

Issue 797003002: Replaced @benchmark.Enabled/Disabled and @test.Enabled/Disabled with @decorators.Enabled/Disabled i… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed some bad imports Created 6 years 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/page/actions/action_runner_unittest.py
diff --git a/tools/telemetry/telemetry/page/actions/action_runner_unittest.py b/tools/telemetry/telemetry/page/actions/action_runner_unittest.py
index ae927ea4712cc6414d68911bcf15b9f4c9e05d76..43401a18f69bbbe15829ba69789fcbe9509a8184 100644
--- a/tools/telemetry/telemetry/page/actions/action_runner_unittest.py
+++ b/tools/telemetry/telemetry/page/actions/action_runner_unittest.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from telemetry import benchmark
+from telemetry import decorators
from telemetry.core import exceptions
from telemetry.core import util
from telemetry.core.platform import tracing_category_filter
@@ -49,7 +49,7 @@ class ActionRunnerInteractionTest(tab_test_case.TabTestCase):
self.assertTrue(getattr(records[0], attribute_name))
# Test disabled for android: crbug.com/437057
- @benchmark.Disabled('android', 'chromeos')
+ @decorators.Disabled('android', 'chromeos')
def testIssuingMultipleMeasurementInteractionRecords(self):
self.VerifyIssuingInteractionRecords(is_fast=True)
self.VerifyIssuingInteractionRecords(is_responsive=True)
@@ -183,7 +183,7 @@ class ActionRunnerTest(tab_test_case.TabTestCase):
action_runner.ClickElement('#notfound')
self.assertRaises(exceptions.EvaluateException, WillFail)
- @benchmark.Disabled('android', 'debug') # crbug.com/437068
+ @decorators.Disabled('android', 'debug') # crbug.com/437068
def testTapElement(self):
self.Navigate('page_with_clickables.html')
action_runner = action_runner_module.ActionRunner(self._tab,
@@ -206,7 +206,7 @@ class ActionRunnerTest(tab_test_case.TabTestCase):
action_runner.TapElement('#notfound')
self.assertRaises(exceptions.EvaluateException, WillFail)
- @benchmark.Disabled('android') # crbug.com/437065.
+ @decorators.Disabled('android') # crbug.com/437065.
def testScroll(self):
if not page_action.IsGestureSourceTypeSupported(
self._tab, 'touch'):
@@ -230,7 +230,7 @@ class ActionRunnerTest(tab_test_case.TabTestCase):
self.assertTrue(action_runner.EvaluateJavaScript(
'document.body.scrollLeft') > 75)
- @benchmark.Disabled('android') # crbug.com/437065.
+ @decorators.Disabled('android') # crbug.com/437065.
def testSwipe(self):
if not page_action.IsGestureSourceTypeSupported(
self._tab, 'touch'):
« no previous file with comments | « tools/telemetry/telemetry/core/video_unittest.py ('k') | tools/telemetry/telemetry/page/actions/scroll_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698