summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authormikl <>2008-04-18 16:53:13 +0000
committermikl <>2008-04-18 16:53:13 +0000
commit8e4607f6e92258738c5293b3d7609d34bec73969 (patch)
tree4adf0479b26b39e78688dfbe28e5bd8c025f4892 /tests/FunctionalTests
parent287cc40d2110dcbe64fd590852da282d7596461c (diff)
Updated test case for #660
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket660.page37
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket660.php10
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();
+ }
+
}
?>