diff options
author | mikl <> | 2008-04-18 16:53:13 +0000 |
---|---|---|
committer | mikl <> | 2008-04-18 16:53:13 +0000 |
commit | 8e4607f6e92258738c5293b3d7609d34bec73969 (patch) | |
tree | 4adf0479b26b39e78688dfbe28e5bd8c025f4892 | |
parent | 287cc40d2110dcbe64fd590852da282d7596461c (diff) |
Updated test case for #660
-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();
+ }
+
} ?> |