From 287cc40d2110dcbe64fd590852da282d7596461c Mon Sep 17 00:00:00 2001 From: mikl <> Date: Fri, 18 Apr 2008 16:33:54 +0000 Subject: Added test case for #660 --- .../tickets/protected/pages/Ticket660.page | 13 +++++++++++ .../tickets/protected/pages/Ticket660.php | 16 +++++++++++++ .../tickets/tests/Ticket660TestCase.php | 26 ++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket660.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket660.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket660TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.page b/tests/FunctionalTests/tickets/protected/pages/Ticket660.page new file mode 100644 index 00000000..baa9189c --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.page @@ -0,0 +1,13 @@ + + +This page uses ISO-8859-1 encoding. +
+ + + +
+
+ +
+ +
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket660.php b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php new file mode 100644 index 00000000..1f24f3cc --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket660.php @@ -0,0 +1,16 @@ +getGlobalization()->setCharset('ISO-8859-1'); + parent::__construct(); + } + + public function changeA($sender,$param) { + $iso_text=iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ äöü'); + $this->A->setText($this->T->getText() . $iso_text); + } + +} +?> diff --git a/tests/FunctionalTests/tickets/tests/Ticket660TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket660TestCase.php new file mode 100644 index 00000000..5156d7b4 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket660TestCase.php @@ -0,0 +1,26 @@ +open('tickets/index.php?page=Ticket660'); + $this->assertTitle("Verifying Ticket 660"); + + $this->click($base.'PB'); + $this->pause(800); + $this->assertText($base.'A','ÄÖÜ äöü'); + + $this->type($base.'T', 'äää'); + $this->click($base.'PB'); + $this->pause(800); + $this->assertText($base.'A','äääÄÖÜ äöü'); + + $this->type($base.'T', 'ööö'); + $this->click($base.'CB'); + $this->pause(800); + $this->assertText($base.'A','öööÄÖÜ äöü'); + } + +} +?> -- cgit v1.2.3