2014-02-24 09:31:12 +00:00
|
|
|
|
|
|
|
Tests that checks whether setting selection at the given index works correctly
|
|
|
|
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
|
|
|
|
|
|
PASS selectElement.selectedChildrenCount is 0
|
|
|
|
PASS selectElement.selectedChildrenCount is 1
|
|
|
|
PASS option1.isSelected is true
|
|
|
|
PASS selectElement.selectedChildAtIndex(0).isEqual(option1) is true
|
|
|
|
PASS selectElement.selectedChildrenCount is 2
|
|
|
|
PASS option2.isSelected is true
|
|
|
|
PASS selectElement.selectedChildAtIndex(1).isEqual(option2) is true
|
|
|
|
PASS option3.isSelected is false
|
|
|
|
PASS selectElement.selectedChildrenCount is 3
|
|
|
|
PASS option4.isSelected is true
|
2016-11-09 18:25:42 +00:00
|
|
|
PASS selectElement.selectedChildAtIndex(2).isEqual(option4) is true
|
2014-02-24 09:31:12 +00:00
|
|
|
PASS option4.isSelected is false
|
|
|
|
PASS selectElement.selectedChildrenCount is 2
|
|
|
|
PASS option2.isSelected is false
|
|
|
|
PASS selectElement.selectedChildrenCount is 1
|
|
|
|
PASS option1.isSelected is false
|
|
|
|
PASS selectElement.selectedChildrenCount is 0
|
|
|
|
PASS successfullyParsed is true
|
|
|
|
|
|
|
|
TEST COMPLETE
|
|
|
|
|