Some PasswordFormManagerTest test cases seems outdated |
||||
Issue descriptionSome PasswordFormManagerTest test cases seem out of date === TestForceInclusionOfGeneratedPasswords_NoMatch === The test verifies that saved passwords always are sent to be autofilled if they have the "generated" bit set. However, the current way the test is written, it would succeed even if the password were not generated, because Chrome changed since the introduction of the test in https://chromiumcodereview.appspot.com/23533069, and computes best matches separately by username. On the other hand, there seems to be no special treating of generated passwords during the selection for best matches, so if there were 2 results for the same username, one of them scoring high but not generated, and the other scoring low but generated, it seems that Chrome would fill the high-scoring result, and not the generated one. Should we delete TestForceInclusionOfGeneratedPasswords_NoMatch? Is the current functionality covered by TestBestCredentialsByEachUsernameAreIncluded, or do we need to test more? === CorrectlyUpdatePasswordsWithSameUsername === This test creates a situation where two logins with the same unique key are saved. That's not realistic. The introducing CL https://codereview.chromium.org/431893003 and the associated bug do not seem very clear about what was the original failure seen in reality. It seems that the test needs adjusting to work with logins with the same username but different unique keys.
,
Aug 22 2016
,
Aug 22 2016
,
Aug 22 2016
CL uploaded for https://codereview.chromium.org/2262143002, but holding off with requesting review yet, both to let bots go green, and to see if I see other problematic test cases.
,
Aug 24 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d31632b608b6168a0b923aa08f46338186a1809f commit d31632b608b6168a0b923aa08f46338186a1809f Author: vabr <vabr@chromium.org> Date: Wed Aug 24 12:39:39 2016 Fix some outdated test cases in PasswordFormManagerTest This CL removes TestForceInclusionOfGeneratedPasswords_NoMatch and fixes CorrectlyUpdatePasswordsWithSameUsername. The former is outdated and replaced by other test cases. The latter created the unrealistic situation of multiple stored credentials with the same unique key -- the fix is to slightly tweak the unique key. More details on the bug. BUG= 639678 Review-Url: https://codereview.chromium.org/2262143002 Cr-Commit-Position: refs/heads/master@{#414054} [modify] https://crrev.com/d31632b608b6168a0b923aa08f46338186a1809f/components/password_manager/core/browser/password_form_manager_unittest.cc
,
Aug 24 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by vabr@chromium.org
, Aug 22 2016Owner: vabr@chromium.org