Commit bbfffe3b authored by sudarshan.p's avatar sudarshan.p Committed by Commit bot

Add test support for setting selected text option for <select> multiple

The test framework returns an empty string as the localized strings are
not supported. This caused the assert to fail on android debug builds,
because of which https://codereview.chromium.org/541693003/ had to be
reverted. This is the chromium side changes needed for the patch to be
restored.

BUG=401506

Review URL: https://codereview.chromium.org/593113003

Cr-Commit-Position: refs/heads/master@{#296648}
parent f42513a7
......@@ -200,6 +200,8 @@ blink::WebString TestWebKitPlatformSupport::queryLocalizedString(
return base::ASCIIToUTF16("range underflow");
if (name == blink::WebLocalizedString::ValidationRangeOverflow)
return base::ASCIIToUTF16("range overflow");
if (name == blink::WebLocalizedString::SelectMenuListText)
return base::ASCIIToUTF16("$1 selected");
return BlinkPlatformImpl::queryLocalizedString(name, value);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment