blob: b3ce6f35d88a8a3278221b024d31b8e0b44fde75 [file] [log] [blame]
Tests that select elements cap their size to the size attribute and to 4 when no size is specified.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS clientHeight('select2') is clientHeight('select1')
PASS getElemById('select2').setAttribute('size', '4'); clientHeight('select2') == clientHeight('select1') is true
PASS getElemById('select2').setAttribute('size', '5'); clientHeight('select2') > clientHeight('select1') is true
PASS getElemById('select2').setAttribute('size', '8'); clientHeight('select2') is within 1 of 136
PASS getElemById('select2').setAttribute('size', '12'); clientHeight('select2') is within 1 of 204
PASS getElemById('select2').setAttribute('size', '16'); clientHeight('select2') is within 1 of 272
PASS successfullyParsed is true
TEST COMPLETE
0
1
2
3
4
5
6
7
8
9
10
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16