diff options
Diffstat (limited to 'tests/FunctionalTests')
3 files changed, 24 insertions, 2 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.page b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.page index 6d2168be..85bc2716 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.page +++ b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.page @@ -39,24 +39,35 @@ ID="textbox1" OnSuggest="suggestCountries" Separator=", " + OnSuggestionSelected="suggestion_selected" ResultPanel.CssClass="autocomplete" /> <com:TAutoComplete Style="width: 30em; height: 20em" TextMode="MultiLine" ID="textbox2" OnSuggest="suggestCountries" OnCallback="callback_requested" + OnSuggestionSelected="suggestion_selected" + TextCssClass="select" AutoPostBack="true" Separator=", \n" ResultPanel.CssClass="autocomplete"> <prop:Suggestions.HeaderTemplate> <ul class="different"> </prop:Suggestions.HeaderTemplate> + <prop:Suggestions.ItemTemplate> + <li> + << + <span class="select"><%# $this->Data %></span> + >> + </li> + </prop:Suggestions.ItemTemplate> </com:TAutoComplete> <com:TAutoComplete Style="width: 20em" id="textbox3" OnSuggest="suggestCountries" OnCallback="callback_requested" + OnSuggestionSelected="suggestion_selected" Separator=", " AutoPostBack="true" ResultPanel.CssClass="autocomplete" /> diff --git a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php index b45fc740..88fbd760 100644 --- a/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php +++ b/tests/FunctionalTests/active-controls/protected/pages/AutoCompleteTest.php @@ -7,9 +7,9 @@ class AutoCompleteTest extends TPage { public function suggestCountries($sender, $param) { - $sender->setDataSource($this->matchCountries($param->getCallbackParameter())); + $sender->setDataSource($this->matchCountries($param->Token)); $sender->dataBind(); - $this->label1->Text = "suggestion for ".$param->getCallbackParameter(); + $this->label1->Text = "suggestion for ".$param->Token; } public function callback_requested($sender, $param) @@ -34,6 +34,11 @@ class AutoCompleteTest extends TPage } return $list; } + + function suggestion_selected($sender, $param) + { + var_dump($param->selectedIndex); + } } ?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket583/Home.page b/tests/FunctionalTests/tickets/protected/pages/Ticket583/Home.page new file mode 100644 index 00000000..c6ce65e3 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket583/Home.page @@ -0,0 +1,6 @@ +<com:TContent ID="Content">
+
+<li><a href="index.php/en/test">English</a></li>
+<li><a href="index.php/fr/test">Français</a></li>
+
+</com:TContent>
\ No newline at end of file |