diff options
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page | 12 | ||||
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page index 7ac7ea86..dc71a228 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.page @@ -1,19 +1,21 @@ <com:TForm ID="form1"> <h1>Active Drop Down List Test Case</h1> - - <com:TActiveDropDownList ID="list1" AutoPostBack="true" OnSelectedIndexChanged="list1_changed"> + + <com:TActiveDropDownList ID="list1" AutoPostBack="true" SelectedIndex="0" OnSelectedIndexChanged="list1_changed"> <com:TListItem Value="value 1" Text="item 1" /> <com:TListItem Value="value 2" Text="item 2" /> <com:TListItem Value="value 3" Text="item 3" /> <com:TListItem Value="value 4" Text="item 4" /> </com:TActiveDropDownList> - <com:TActiveDropDownList ID="list2" + <com:TActiveDropDownList ID="list2" Enabled="false" AutoPostBack="true" OnSelectedIndexChanged="list2_changed" /> <div style="margin:1em; padding:1em; border:1px solid #ccc; text-align:center;"> <com:TActiveLabel ID="label1" Text="Label 1" /> + <br/> + <com:TActiveLabel ID="label2" Text="Label 2" /> </div> <div style="margin:1em; padding:0.5em; text-align:center; border:1px solid #ccc;"> <com:TActiveButton ID="button1" Text="Select Index 3" OnClick="select_index_3" /> @@ -23,7 +25,7 @@ <com:TButton ID="button5" Text="Post Back" OnClick="do_postback"/> </div> - + <com:TJavascriptLogger /> - + </com:TForm>
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php index 83480a0c..c7f0f6b4 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php +++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveDropDownList.php @@ -17,7 +17,7 @@ class ActiveDropDownList extends TPage function list2_changed($sender) { - $this->label1->setText("Selection 2: ".$sender->getSelectedValue()); + $this->label2->setText("Selection 2: ".$sender->getSelectedValue()); } function select_index_3() |