Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / input-maxlength-unsupported.html
blobd3e59e2776ee56b77e5e5bb24d99fe58b7521b32
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('A test for maxlength attribute of an input element with non-text type');
12 var input = document.createElement('input');
13 input.maxLength = 2;
14 input.type = 'number';
15 document.body.appendChild(input);
16 input.focus();
17 document.execCommand('insertText', false, '1234');
18 shouldBe('input.value', '"1234"');
20 input.parentNode.removeChild(input);
21 </script>
22 </body>
23 </html>