diff options
Diffstat (limited to 'tests/FunctionalTests/tickets/protected')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket660.page | 37 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket660.php | 10 |
2 files changed, 47 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.page b/tests/FunctionalTests/tickets/protected/pages/Ticket660.page index baa9189c..8e0206da 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket660.page +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.page @@ -1,4 +1,37 @@ <com:TContent ID="Content"> +<style> +.autocomplete +{ + border:1px solid #919EA9; + background-color:white; +} +.autocomplete ul, .autocomplete li +{ + margin: 0; + padding: 0; + list-style: none; + font-size: 12px; + font-family: Tahoma, Arial, Helvetica, sans-serif; + color: #333; +} + +ul.different +{ + background-color: pink; +} + +.autocomplete li +{ + padding: 4px; + border-top: 1px solid #ccc; +} + +.autocomplete .selected +{ + background-color: #ffc; +} + +</style> This page uses ISO-8859-1 encoding. <div> @@ -10,4 +43,8 @@ This page uses ISO-8859-1 encoding. <com:TActiveLabel ID="A" /> </div> +<div style="margin-top: 3em"> +Manual test of AutoComplete (enter some ISO-8859-1 characters..)<br /> +<com:TAutoComplete ID="AC" OnSuggest="suggest" ResultPanel.CssClass="autocomplete" /> +</div> </com:TContent> diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php index 1f24f3cc..2785a816 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php @@ -12,5 +12,15 @@ class Ticket660 extends TPage { $this->A->setText($this->T->getText() . $iso_text); } + public function suggest($sender, $param)
+ {
+ $token=$param->getCallbackParameter(); + $sender->setDataSource(array( + 1 => 'ABC Token:'.$token, + 2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token + )); + $sender->dataBind();
+ }
+
} ?> |