diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php new file mode 100644 index 00000000..24f8099d --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php @@ -0,0 +1,53 @@ +<?php
+
+class ActiveListBoxTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=ActiveListBoxTest");
+ $this->assertTextPresent('Active List Box Functional Test');
+
+ $this->assertText("label1", "Label 1");
+
+ $this->click("button1");
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '1,2,3');
+
+ $this->click('button3');
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '0');
+
+ $this->click('button4');
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '4');
+
+ $this->click('button5');
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '1,4');
+
+ $this->click('button2');
+ $this->pause(800);
+ $this->assertEmptySelection("list1");
+
+ $this->click('button7');
+ $this->pause(800);
+ $this->click("button1");
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '3');
+
+ $this->click('button6');
+ $this->pause(800);
+ $this->click("button1");
+ $this->pause(800);
+ $this->assertSelectedIndexes('list1', '1,2,3');
+
+ $this->select("list1", "item 1");
+ $this->pause(800);
+ $this->assertText('label1', 'Selection: value 1');
+
+ $this->addSelection("list1", "item 4");
+ $this->pause(800);
+ $this->assertText('label1', 'Selection: value 1, value 4');
+ }
+}
+?>
\ No newline at end of file |