diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:21:25 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:21:25 +0000 |
commit | 9e5e2fbc914745d0b9a92a956b5f4ce955daf977 (patch) | |
tree | 0950b03baef1384773bac247ffc73f24e601949e /webkit/support | |
parent | bb1fb2b0ebfaaa61780526a7cf36e87e825ee845 (diff) | |
download | chromium_src-9e5e2fbc914745d0b9a92a956b5f4ce955daf977.zip chromium_src-9e5e2fbc914745d0b9a92a956b5f4ce955daf977.tar.gz chromium_src-9e5e2fbc914745d0b9a92a956b5f4ce955daf977.tar.bz2 |
Stop using WebKit-compatible validation messages for testing.
We have validation messages which are different from the default messages of
WebKit, and DRT and ContentShell provided WebKit-compatible messages to pass
layout tests. Because we don't use WebKit any more, we can stop providing
WebKit-compatible messages.
BUG=243298
TEST=automated. We'll update some layout tests.
Review URL: https://chromiumcodereview.appspot.com/15845005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support')
-rw-r--r-- | webkit/support/test_webkit_platform_support.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc index 764ec9d..4c2deca 100644 --- a/webkit/support/test_webkit_platform_support.cc +++ b/webkit/support/test_webkit_platform_support.cc @@ -279,32 +279,8 @@ WebKit::WebData TestWebKitPlatformSupport::loadResource(const char* name) { WebKit::WebString TestWebKitPlatformSupport::queryLocalizedString( WebKit::WebLocalizedString::Name name) { - // Returns messages same as WebKit's in DRT. - // We use different strings for form validation messages and page popup UI - // strings. + // Returns placeholder strings to check if they are correctly localized. switch (name) { - case WebKit::WebLocalizedString::ValidationValueMissing: - case WebKit::WebLocalizedString::ValidationValueMissingForCheckbox: - case WebKit::WebLocalizedString::ValidationValueMissingForFile: - case WebKit::WebLocalizedString::ValidationValueMissingForMultipleFile: - case WebKit::WebLocalizedString::ValidationValueMissingForRadio: - case WebKit::WebLocalizedString::ValidationValueMissingForSelect: - return ASCIIToUTF16("value missing"); - case WebKit::WebLocalizedString::ValidationTypeMismatch: - case WebKit::WebLocalizedString::ValidationTypeMismatchForEmail: - case WebKit::WebLocalizedString::ValidationTypeMismatchForMultipleEmail: - case WebKit::WebLocalizedString::ValidationTypeMismatchForURL: - return ASCIIToUTF16("type mismatch"); - case WebKit::WebLocalizedString::ValidationPatternMismatch: - return ASCIIToUTF16("pattern mismatch"); - case WebKit::WebLocalizedString::ValidationTooLong: - return ASCIIToUTF16("too long"); - case WebKit::WebLocalizedString::ValidationRangeUnderflow: - return ASCIIToUTF16("range underflow"); - case WebKit::WebLocalizedString::ValidationRangeOverflow: - return ASCIIToUTF16("range overflow"); - case WebKit::WebLocalizedString::ValidationStepMismatch: - return ASCIIToUTF16("step mismatch"); case WebKit::WebLocalizedString::OtherDateLabel: return ASCIIToUTF16("<<OtherDateLabel>>"); case WebKit::WebLocalizedString::OtherMonthLabel: |