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