summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/layout_tests/test_expectations.txt3
-rw-r--r--webkit/tools/test_shell/text_input_controller.cc7
2 files changed, 6 insertions, 4 deletions
diff --git a/webkit/tools/layout_tests/test_expectations.txt b/webkit/tools/layout_tests/test_expectations.txt
index 66c5bff..a68bd59 100644
--- a/webkit/tools/layout_tests/test_expectations.txt
+++ b/webkit/tools/layout_tests/test_expectations.txt
@@ -2302,9 +2302,6 @@ BUG20886 WIN DEBUG : LayoutTests/fast/js/regexp-non-capturing-groups.html = CRAS
BUG20898 MAC DEBUG : LayoutTests/svg/W3C-SVG-1.1/painting-marker-02-f.svg = FAIL PASS
// WebKit 48001:48020
-// New Webkit test: http://trac.webkit.org/changeset/48011
-// maxLength does not work for IME input in this test.
-BUG20993 : LayoutTests/fast/forms/input-maxlength-ime-completed.html = FAIL
// Need to implement clearAllDatabases in layoutTestController.
BUG20995 SKIP : LayoutTests/storage/statement-error-callback.html = FAIL
diff --git a/webkit/tools/test_shell/text_input_controller.cc b/webkit/tools/test_shell/text_input_controller.cc
index 8dfb9a1..8ab7576 100644
--- a/webkit/tools/test_shell/text_input_controller.cc
+++ b/webkit/tools/test_shell/text_input_controller.cc
@@ -52,8 +52,13 @@ void TextInputController::insertText(
if (!main_frame)
return;
- if (args.size() >= 1 && args[0].isString())
+ if (args.size() >= 1 && args[0].isString()) {
+ if (main_frame->hasMarkedText()) {
+ main_frame->unmarkText();
+ main_frame->replaceSelection(WebString());
+ }
main_frame->insertText(WebString::fromUTF8(args[0].ToString()));
+ }
}
void TextInputController::doCommand(