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

Unified Diff: telemetry/examples/browser_tests/simple_browser_test.py

Issue 2562913003: Move browser_test_runner.LoadAllTestsInModule to serially_executed_browser_test_case (Closed)
Patch Set: Fix test Created 4 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: telemetry/examples/browser_tests/simple_browser_test.py
diff --git a/telemetry/examples/browser_tests/simple_browser_test.py b/telemetry/examples/browser_tests/simple_browser_test.py
index 7d3b5c13f5170ad4353176ce367acd4af4fcecae..66819883c863e7cc1275d020c0ef00d65459e1f0 100644
--- a/telemetry/examples/browser_tests/simple_browser_test.py
+++ b/telemetry/examples/browser_tests/simple_browser_test.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import sys
import os
from telemetry.testing import serially_executed_browser_test_case
@@ -65,3 +66,9 @@ class SimpleBrowserTest(
self.action_runner.ExecuteJavaScript('valueSettableByTest = 1997')
self.action_runner.ClickElement(text='Click/tap me')
self.assertEqual(1997, self.action_runner.EvaluateJavaScript('valueToTest'))
+
+
+def load_tests(loader, tests, pattern):
+ del loader, tests, pattern # Unused.
+ return serially_executed_browser_test_case.LoadAllTestsInModule(
+ sys.modules[__name__])

Powered by Google App Engine
This is Rietveld 408576698