Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-maxlength-ime-preedit.html
blob7b61da205b00d228246f968d4badbc5ec50faad0
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
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);
14 input.maxLength = 2;
15 input.focus();
16 textInputController.setMarkedText('abcd', 0, 4);
17 // The selection should have 4 characters though maxLength is 2.
18 shouldBe('document.getSelection().toString()', '"abcd"');
19 </script>
20 </body>
21 </html>