diff options
Diffstat (limited to 'chrome/renderer/render_view_browsertest.cc')
-rw-r--r-- | chrome/renderer/render_view_browsertest.cc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/chrome/renderer/render_view_browsertest.cc b/chrome/renderer/render_view_browsertest.cc index 0b81bec..73d2446 100644 --- a/chrome/renderer/render_view_browsertest.cc +++ b/chrome/renderer/render_view_browsertest.cc @@ -40,13 +40,6 @@ using WebKit::WebURLError; using webkit_glue::FormData; using webkit_glue::FormField; -namespace { - -// TODO(isherman): Pull this as a named constant from WebKit -const int kDefaultMaxLength = 0x80000; - -} // namespace - // Test that we get form state change notifications when input fields change. TEST_F(RenderViewTest, OnNavStateChanged) { // Don't want any delay for form state sync changes. This will still post a @@ -1045,14 +1038,14 @@ TEST_F(RenderViewTest, SendForms) { ASCIIToUTF16("firstname"), string16(), ASCIIToUTF16("text"), - kDefaultMaxLength, + WebInputElement::defaultMaxLength(), false))) << forms[0].fields[0]; EXPECT_TRUE(forms[0].fields[1].StrictlyEqualsHack( FormField(string16(), ASCIIToUTF16("middlename"), string16(), ASCIIToUTF16("text"), - kDefaultMaxLength, + WebInputElement::defaultMaxLength(), false))) << forms[0].fields[1]; EXPECT_TRUE(forms[0].fields[2].StrictlyEqualsHack( FormField(string16(), @@ -1092,14 +1085,14 @@ TEST_F(RenderViewTest, SendForms) { ASCIIToUTF16("firstname"), string16(), ASCIIToUTF16("text"), - kDefaultMaxLength, + WebInputElement::defaultMaxLength(), false))) << form2.fields[0]; EXPECT_TRUE(form2.fields[1].StrictlyEqualsHack( FormField(string16(), ASCIIToUTF16("middlename"), string16(), ASCIIToUTF16("text"), - kDefaultMaxLength, + WebInputElement::defaultMaxLength(), false))) << form2.fields[1]; EXPECT_TRUE(form2.fields[2].StrictlyEqualsHack( FormField(string16(), |