1 This page tests that the maxlength attribute of the <input> element works correctly. http://bugs.webkit.org/show_bug.cgi?id=14388
3 Attempting to insert 0 characters with maxLength = -1.
5 Attempting to insert 0 characters with maxLength = 100.
7 Attempting to insert 0 characters with maxLength = 524288.
9 Attempting to insert 0 characters with maxLength = 600000.
11 Attempting to insert 5 characters with maxLength = -1.
13 Attempting to insert 5 characters with maxLength = 100.
15 Attempting to insert 5 characters with maxLength = 524288.
17 Attempting to insert 5 characters with maxLength = 600000.
19 Attempting to insert 100 characters with maxLength = -1.
21 Attempting to insert 100 characters with maxLength = 100.
23 Attempting to insert 100 characters with maxLength = 524288.
25 Attempting to insert 100 characters with maxLength = 600000.
27 Attempting to insert 101 characters with maxLength = -1.
29 Attempting to insert 101 characters with maxLength = 100.
31 Attempting to insert 101 characters with maxLength = 524288.
33 Attempting to insert 101 characters with maxLength = 600000.
35 Attempting to insert 200 characters with maxLength = -1.
37 Attempting to insert 200 characters with maxLength = 100.
39 Attempting to insert 200 characters with maxLength = 524288.
41 Attempting to insert 200 characters with maxLength = 600000.
43 Attempting to insert 524287 characters with maxLength = -1.
45 Attempting to insert 524287 characters with maxLength = 100.
47 Attempting to insert 524287 characters with maxLength = 524288.
49 Attempting to insert 524287 characters with maxLength = 600000.
51 Attempting to insert 524288 characters with maxLength = -1.
53 Attempting to insert 524288 characters with maxLength = 100.
55 Attempting to insert 524288 characters with maxLength = 524288.
57 Attempting to insert 524288 characters with maxLength = 600000.
59 Attempting to insert 524289 characters with maxLength = -1.
61 Attempting to insert 524289 characters with maxLength = 100.
63 Attempting to insert 524289 characters with maxLength = 524288.
65 Attempting to insert 524289 characters with maxLength = 600000.
67 Attempting to insert 530000 characters with maxLength = -1.
69 Attempting to insert 530000 characters with maxLength = 100.
71 Attempting to insert 530000 characters with maxLength = 524288.
73 Attempting to insert 530000 characters with maxLength = 600000.
75 Some tests for .maxLength property.
76 PASS input.maxLength is implicitMaxLength
77 PASS input.maxLength = -1 threw exception IndexSizeError: Failed to set the 'maxLength' property on 'HTMLInputElement': The value provided (-1) is negative..
78 PASS input.getAttribute('maxlength') is '100'
79 PASS successfullyParsed is true