summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
diff options
context:
space:
mode:
authorwei <>2006-09-30 01:49:58 +0000
committerwei <>2006-09-30 01:49:58 +0000
commit6b1d87352911e43672b46b7a65a3c90dd8e5b8b1 (patch)
treefb37b6b35d082aeee8f1aa96c0bc8824a74e5922 /tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
parentb64ee49dc56cbbecccadfc7908dd59ffb95fc0ff (diff)
Fixed #403
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
index 7060d84b..10541885 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php
@@ -4,7 +4,7 @@ class ActiveDropDownList extends TPage
{
function list1_changed($sender)
{
- $this->label1->setText("Selection 1: ".$sender->getSelectedValue());
+ $this->label1->setText("Selection 1: ".$sender->getSelectedValue());
$this->addOptionsToList2($sender->getSelectedValue());
}
@@ -19,21 +19,28 @@ class ActiveDropDownList extends TPage
{
$this->label1->setText("Selection 2: ".$sender->getSelectedValue());
}
-
+
function select_index_3()
{
$this->list1->setSelectedIndex(3);
}
-
+
function clear_selections()
{
$this->list1->clearSelection();
}
-
+
function select_value_2()
{
$this->list1->setSelectedValue("value 2");
}
+
+ function select_index_3_plus()
+ {
+ $this->list1->setSelectedValue("value 3");
+ $this->list1_changed($this->list1);
+ $this->list2->setSelectedValue("value 3 - item 3");
+ }
}
?> \ No newline at end of file