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

Unified Diff: components/test/data/password_manager/automated_tests/websitetest.py

Issue 1084553003: [Password manager tests automation] Adds an ability to specify test_case which should be run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@save_only_errors
Patch Set: Created 5 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
« no previous file with comments | « components/test/data/password_manager/automated_tests/tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test/data/password_manager/automated_tests/websitetest.py
diff --git a/components/test/data/password_manager/automated_tests/websitetest.py b/components/test/data/password_manager/automated_tests/websitetest.py
index 1ec6d7b73b8de170c8cb49ccc2c7bfa0a3b238b8..d8148f489fbae83890a7fb83677fdad8e5b035d4 100644
--- a/components/test/data/password_manager/automated_tests/websitetest.py
+++ b/components/test/data/password_manager/automated_tests/websitetest.py
@@ -30,11 +30,6 @@ class WebsiteTest:
# interaction.
MAX_WAIT_TIME_IN_SECONDS = 200
- # Types of test to be passed to self.RunTest().
- TEST_TYPE_PROMPT_FAIL = 1
- TEST_TYPE_PROMPT_SUCCESS = 2
- TEST_TYPE_SAVE_AND_AUTOFILL = 3
-
def __init__(self, name, username_not_auto=False):
"""Creates a new WebsiteTest.
@@ -368,18 +363,3 @@ class WebsiteTest:
True,
"Error: failed autofilled login on website: %s" % self.name)
- def RunTest(self, test_type):
- """Runs test according to the |test_type|.
-
- Raises:
- Exception: If |test_type| is not one of the TEST_TYPE_* constants.
- """
-
- if test_type == WebsiteTest.TEST_TYPE_PROMPT_FAIL:
- self.PromptFailTest()
- elif test_type == WebsiteTest.TEST_TYPE_PROMPT_SUCCESS:
- self.PromptSuccessTest()
- elif test_type == WebsiteTest.TEST_TYPE_SAVE_AND_AUTOFILL:
- self.SaveAndAutofillTest()
- else:
- raise Exception("Unknown test type {}.".format(test_type))
« no previous file with comments | « components/test/data/password_manager/automated_tests/tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698