| Index: third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001.html b/third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001.html
|
| index 56de7027e15eac25c2666eee84a6f0581a8ef23f..e6e8292a36a50442f70f63adfffddccf842dc9b4 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/events/ime-composition-events-001.html
|
| @@ -24,8 +24,13 @@ function logCompositionEnd(event) {
|
| testPassed('event.data is "' + event.data + '"');
|
| }
|
|
|
| -function logTextInput(event) {
|
| - shouldBeEqualToString('event.type', 'textInput');
|
| +function logBeforeInput(event) {
|
| + shouldBeEqualToString('event.type', 'beforeinput');
|
| + testPassed('event.data is "' + event.data + '"');
|
| +}
|
| +
|
| +function logInput(event) {
|
| + shouldBeEqualToString('event.type', 'input');
|
| testPassed('event.data is "' + event.data + '"');
|
| }
|
|
|
| @@ -36,7 +41,8 @@ test.focus();
|
| test.addEventListener('compositionstart', logCompositionStart, false);
|
| test.addEventListener('compositionupdate', logCompositionUpdate, false);
|
| test.addEventListener('compositionend', logCompositionEnd, false);
|
| -test.addEventListener('textInput', logTextInput, false);
|
| +test.addEventListener('beforeinput', logBeforeInput, false);
|
| +test.addEventListener('input', logInput, false);
|
|
|
| // Case 1: Compose a text and commit it.
|
| textInputController.setMarkedText('1', 0, 1);
|
|
|