blob: 46eab60e6d3a35701540c3c7dcb1eafac4c1702b [file] [log] [blame]
Test select.add() with optgroup
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
list elements are = 0,1,2
PASS testAdd3(createGroup("Y1", "Y2"), null) is "0,1,2,Y1,Y2"
PASS testAdd3(createGroup("Y3", "Y4"), 0) is "Y3,Y4,0,1,2"
PASS testAdd3(createGroup("Y5", "Y6"), 2) is "0,1,Y5,Y6,2"
PASS testAdd1(createGroup("Y7", "Y8")) is "0,1,2,Y7,Y8"
PASS testAdd1(createOption("Y9")) is "0,1,2,Y9"
list elements are = 0,1,2
PASS testAdd2(createOption("Y10"), mySelect.options[2]) is "0,1,Y10,2"
PASS testAdd2(createOption("Y11"), mySelect.options[1]) is "0,Y11,1,Y10,2"
list elements are = 0,1,2
PASS testAdd2(createGroup("Y12", "Y13"), mySelect.options[1]) is "0,Y12,Y13,1,2"
PASS testAdd2(createGroup("Y14", "Y15"), mySelect.options[3]) is "0,Y12,Y13,Y14,Y15,1,2"
list elements are = 0,1,2
PASS testAdd2(createOption("Y16"), createOption("Y17")) threw exception NotFoundError: The object can not be found here..
PASS successfullyParsed is true
TEST COMPLETE