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('This test checks users can input pre-edit text longer than maxlength.');
12 var input
= document
.createElement('input');
13 document
.body
.appendChild(input
);
16 textInputController
.setMarkedText('abcd', 0, 4);
17 // The selection should have 4 characters though maxLength is 2.
18 shouldBe('document.getSelection().toString()', '"abcd"');