diff options
author | wei <> | 2006-08-12 05:34:54 +0000 |
---|---|---|
committer | wei <> | 2006-08-12 05:34:54 +0000 |
commit | 54d4919e3f1b00b644fa3c107acdf20159a1b154 (patch) | |
tree | 1c3e9cc679d4e08cc4beb06eee6f79838a34cb31 /tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php | |
parent | 6dd529fdc25404da07cf9256d92f2a94985c65fc (diff) |
Update active controls.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php new file mode 100644 index 00000000..942bb1a0 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxTest.php @@ -0,0 +1,47 @@ +<?php
+
+class ActiveListBoxTest extends TPage
+{
+ function list1_callback($sender, $param)
+ {
+ $values = $sender->getSelectedValues();
+ $this->label1->setText("Selection: ".implode(', ', $values));
+ }
+
+ function select_index_123()
+ {
+ $this->list1->setSelectedIndices(array(1,2,3));
+ }
+
+ function select_index_4()
+ {
+ $this->list1->setSelectedIndex(4);
+ }
+
+ function clear_selections()
+ {
+ $this->list1->clearSelection();
+ }
+
+ function select_value_1()
+ {
+ $this->list1->setSelectedValue("value 1");
+ }
+
+ function select_values_25()
+ {
+ $this->list1->setSelectedValues(array('value 2', 'value 5'));
+ }
+
+ function change_to_multiple()
+ {
+ $this->list1->SelectionMode="Multiple";
+ }
+
+ function change_to_single()
+ {
+ $this->list1->SelectionMode="Single";
+ }
+}
+
+?>
\ No newline at end of file |