blob: 0cff8cc2eba8c22768eba679f213ecd01e63f825 [file] [log] [blame]
HTMLInputElement size attribute test
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS input.size is 20
PASS input.setAttribute('size', '-1'); input.size is 20
PASS input.removeAttribute('size'); input.size is 20
PASS input.setAttribute('size', '1'); input.size is 1
PASS input.setAttribute('size', '2'); input.size is 2
PASS input.removeAttribute('size'); input.size is 20
PASS input.setAttribute('size', 'a'); input.size is 20
PASS input.removeAttribute('size'); input.size is 20
PASS input.setAttribute('size', '0'); input.size is 20
PASS input.setAttribute('size', '10'); input.size is 10
PASS input.size = 0 threw exception IndexSizeError: The index is not in the allowed range..
PASS successfullyParsed is true
TEST COMPLETE