From 8e4607f6e92258738c5293b3d7609d34bec73969 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Fri, 18 Apr 2008 16:53:13 +0000 Subject: Updated test case for #660 --- .../tickets/protected/pages/Ticket660.page | 37 ++++++++++++++++++++++ .../tickets/protected/pages/Ticket660.php | 10 ++++++ 2 files changed, 47 insertions(+) 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 @@ + This page uses ISO-8859-1 encoding.
@@ -10,4 +43,8 @@ This page uses ISO-8859-1 encoding.
+
+Manual test of AutoComplete (enter some ISO-8859-1 characters..)
+ +
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(); + } + } ?> -- cgit v1.2.3