diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 08:38:33 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-04 08:38:33 +0000 |
commit | cdf047a47971aa5695cc730ca52695978a6d87d6 (patch) | |
tree | ff56d893c725058e1f84edf1f0cfb554476c8af3 /chrome/renderer/render_view_browsertest.cc | |
parent | 597386eef934e4d06dd3b15261bf066c06da5485 (diff) | |
download | chromium_src-cdf047a47971aa5695cc730ca52695978a6d87d6.zip chromium_src-cdf047a47971aa5695cc730ca52695978a6d87d6.tar.gz chromium_src-cdf047a47971aa5695cc730ca52695978a6d87d6.tar.bz2 |
Only cache <input type="text"> and <select> elements for autofill.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6359019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view_browsertest.cc')
-rw-r--r-- | chrome/renderer/render_view_browsertest.cc | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/chrome/renderer/render_view_browsertest.cc b/chrome/renderer/render_view_browsertest.cc index ee0d1da..0d4db39 100644 --- a/chrome/renderer/render_view_browsertest.cc +++ b/chrome/renderer/render_view_browsertest.cc @@ -1023,6 +1023,11 @@ TEST_F(RenderViewTest, SendForms) { " <input type=\"text\" id=\"firstname\"/>" " <input type=\"text\" id=\"middlename\" autoComplete=\"off\"/>" " <input type=\"hidden\" id=\"lastname\"/>" + " <select id=\"state\"/>" + " <option>?</option>" + " <option>California</option>" + " <option>Texas</option>" + " </select>" "</form>"); // Verify that "FormsSeen" sends the expected number of fields. @@ -1051,9 +1056,9 @@ TEST_F(RenderViewTest, SendForms) { false))) << forms[0].fields[1]; EXPECT_TRUE(forms[0].fields[2].StrictlyEqualsHack( FormField(string16(), - ASCIIToUTF16("lastname"), - string16(), - ASCIIToUTF16("hidden"), + ASCIIToUTF16("state"), + ASCIIToUTF16("?"), + ASCIIToUTF16("select-one"), 0, false))) << forms[0].fields[2]; @@ -1098,9 +1103,9 @@ TEST_F(RenderViewTest, SendForms) { false))) << form2.fields[1]; EXPECT_TRUE(form2.fields[2].StrictlyEqualsHack( FormField(string16(), - ASCIIToUTF16("lastname"), - string16(), - ASCIIToUTF16("hidden"), + ASCIIToUTF16("state"), + ASCIIToUTF16("?"), + ASCIIToUTF16("select-one"), 0, false))) << form2.fields[2]; } |