Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / forms / script-tests / input-maxlength-ime-preedit.js
1 description('This test checks users can input pre-edit text longer than maxlength.');
2
3 var input = document.createElement('input');
4 document.body.appendChild(input);
5 input.maxLength = 2;
6 input.focus();
7 textInputController.setMarkedText('abcd', 0, 4);
8 // The selection should have 4 characters though maxLength is 2.
9 shouldBe('document.getSelection().toString()', '"abcd"');
10
11 var successfullyParsed = true;