Chromium Code Reviews

Unified Diff: chrome/test/functional/test_utils.py

Issue 5921001: Make sure private data does not inadverently get printed out (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/test_utils.py
diff --git a/chrome/test/functional/test_utils.py b/chrome/test/functional/test_utils.py
index cdd3f0524f51d40c325f4bacf8d8c39f5e6229b7..978e488ff4c9bd32f7a472605127024f92f34052 100644
--- a/chrome/test/functional/test_utils.py
+++ b/chrome/test/functional/test_utils.py
@@ -87,7 +87,9 @@ def VerifyGoogleAccountCredsFilled(test, username, password, tab_index=0,
passwd_value = test.GetDOMValue('document.getElementById("Passwd").value',
windex, tab_index)
test.assertEqual(email_value, username)
- test.assertEqual(passwd_value, password)
+ # Not using assertEqual because if it fails it would end up dumping the
+ # password (which is supposed to be private)
+ test.assertTrue(passwd_value == password)
def ClearPasswords(test):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine