diff options
author | wei <> | 2006-09-15 23:49:56 +0000 |
---|---|---|
committer | wei <> | 2006-09-15 23:49:56 +0000 |
commit | b196ea0e2e9ab9078022e88326edecf1ba5b2f9f (patch) | |
tree | 3d9f37bfa14c363fc91df306b798ddc1b7ef872e /tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php | |
parent | 9f2905f5e2a6d0ab33e4e2d82162183cfd63a042 (diff) |
Defer render() calls in callback event handler to a later stage.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php new file mode 100644 index 00000000..d2991653 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveListBoxMasterTest.php @@ -0,0 +1,47 @@ +<?php
+
+class ActiveListBoxMasterTest 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 |