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

Unified Diff: chrome/renderer/autofill/password_autofill_agent_browsertest.cc

Issue 1409293007: new URL('') should throw TypeError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updating test expectations Created 5 years, 1 month 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: chrome/renderer/autofill/password_autofill_agent_browsertest.cc
diff --git a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
index 4639049ee38cc9edc21d1f2ed0585e8d519f1858..0143c5047b6f2b8f88c81e281397fbdd2c628961 100644
--- a/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
+++ b/chrome/renderer/autofill/password_autofill_agent_browsertest.cc
@@ -553,7 +553,7 @@ TEST_F(PasswordAutofillAgentTest, InitialAutocompleteForEmptyAction) {
// Set the expected form origin and action URLs.
UpdateOriginForHTML(kEmptyActionFormHTML);
- fill_data_.action = fill_data_.origin;
+ fill_data_.action = GURL("");
vabr (Chromium) 2015/11/06 11:24:14 Does GURL() and GURL("") result in the same object
ramya.v 2015/11/06 13:45:14 Done.
// Simulate the browser sending back the login info, it triggers the
// autocomplete.
@@ -1400,7 +1400,7 @@ TEST_F(PasswordAutofillAgentTest,
TEST_F(PasswordAutofillAgentTest,
RememberLastNonEmptyUsernameAndPasswordOnSubmit_New) {
const char kNewPasswordFormHTML[] =
- "<FORM name='LoginTestForm'>"
+ "<FORM name='LoginTestForm' action='http://www.bidule.com'>"
vabr (Chromium) 2015/11/06 11:24:14 What exactly went wrong with this test when the ac
ramya.v 2015/11/06 13:45:14 In PasswordAutofillAgent::WillSubmitForm submitted
vabr (Chromium) 2015/11/06 14:08:54 Acknowledged.
" <INPUT type='text' id='username' autocomplete='username'/>"
" <INPUT type='password' id='password' autocomplete='new-password'/>"
" <INPUT type='submit' value='Login'/>"

Powered by Google App Engine
This is Rietveld 408576698