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

Unified Diff: webkit/support/test_webkit_platform_support.cc

Issue 11143012: DumpRenderTree should use fake strings for page popup UI so we can test localization in layout test… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Used <<id>> format Created 8 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/test_webkit_platform_support.cc
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc
index 6fd34f32dd14dd9a66de29fd0c211b43c49bd9e4..795928371dae8e2b7ad4cedeb6cfb415a5cb414b 100644
--- a/webkit/support/test_webkit_platform_support.cc
+++ b/webkit/support/test_webkit_platform_support.cc
@@ -267,7 +267,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.
+ // We use different strings for form validation messages and page popup UI
+ // strings.
switch (name) {
case WebKit::WebLocalizedString::ValidationValueMissing:
case WebKit::WebLocalizedString::ValidationValueMissingForCheckbox:
@@ -291,6 +292,18 @@ WebKit::WebString TestWebKitPlatformSupport::queryLocalizedString(
return ASCIIToUTF16("range overflow");
case WebKit::WebLocalizedString::ValidationStepMismatch:
return ASCIIToUTF16("step mismatch");
+ case WebKit::WebLocalizedString::OtherDateLabel:
+ return ASCIIToUTF16("<<OtherDateLabel>>");
+ case WebKit::WebLocalizedString::OtherMonthLabel:
+ return ASCIIToUTF16("<<OtherMonthLabel>>");
+ case WebKit::WebLocalizedString::OtherTimeLabel:
+ return ASCIIToUTF16("<<OtherTimeLabel>>");
+ case WebKit::WebLocalizedString::OtherWeekLabel:
+ return ASCIIToUTF16("<<OtherWeekLabel>>");
+ case WebKit::WebLocalizedString::CalendarClear:
+ return ASCIIToUTF16("<<CalendarClear>>");
+ case WebKit::WebLocalizedString::CalendarToday:
+ return ASCIIToUTF16("<<CalendarToday>>");
default:
return WebKitPlatformSupportImpl::queryLocalizedString(name);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698