Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-maxlength-ime-completed.html
blobedd48e6f2104ba808c531a416857da24ea8a59aa
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('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');
13 input.maxLength = 2;
14 document.body.appendChild(input);
15 input.focus();
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"');
22 </script>
23 </body>
24 </html>