Index: telemetry/examples/browser_tests/failed_tests.py |
diff --git a/telemetry/examples/browser_tests/failed_tests.py b/telemetry/examples/browser_tests/failed_tests.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3c9a1b9a98970bb83b606c0030e6c0ef18da6798 |
--- /dev/null |
+++ b/telemetry/examples/browser_tests/failed_tests.py |
@@ -0,0 +1,40 @@ |
+# Copyright 2016 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. |
+ |
+ |
+from telemetry.testing import serially_executed_browser_test_case |
+ |
+ |
+class SetUpClassFailedTest( |
+ serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): |
+ |
+ @classmethod |
+ def setUpClass(cls): |
+ raise Exception |
+ |
+ @classmethod |
+ def GenerateTestCases_DummyTest(cls, options): |
+ del options # Unused. |
+ for i in xrange(0, 100): |
+ yield 'dummy_test_%i' % i, () |
+ |
+ def DummyTest(self): |
+ pass |
+ |
+ |
+class TearDownClassFailedTest( |
+ serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): |
+ |
+ @classmethod |
+ def tearDownClass(cls): |
+ raise Exception |
+ |
+ @classmethod |
+ def GenerateTestCases_DummyTest(cls, options): |
+ del options # Unused. |
+ for i in xrange(0, 100): |
+ yield 'dummy_test_%i' % i, () |
+ |
+ def DummyTest(self): |
+ pass |