1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description('There was a bug that users could input text longer than maxlength via IME. This test confirms it was fixed.');
12 var input
= document
.createElement('input');
14 document
.body
.appendChild(input
);
16 textInputController
.setMarkedText('abcd', 0, 4);
17 textInputController
.insertText('abcd'); // Debug WebKit crashed by this without the change of bug#25253.
18 // Check the current value without input.value.
19 // In Release WebKit, input.value was 'ab' though the user-visible value was 'abcd'.
20 document
.execCommand('SelectAll');
21 shouldBe('document.getSelection().toString()', '"ab"');