From d78e127d34b36ddd2b3465192218ef87f205828e Mon Sep 17 00:00:00 2001 From: David Date: Thu, 10 Jul 2014 17:32:37 +0200 Subject: Testcase for Issue #524 (cherry picked from commit 37a1d886c6960080bbd03cad757c722b494a0220) --- .../issues/protected/pages/Issue524.page | 7 +++++++ .../issues/protected/pages/Issue524.php | 20 ++++++++++++++++++++ .../issues/tests/Issue524TestCase.php | 20 ++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue524.page create mode 100755 tests/FunctionalTests/issues/protected/pages/Issue524.php create mode 100755 tests/FunctionalTests/issues/tests/Issue524TestCase.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.page b/tests/FunctionalTests/issues/protected/pages/Issue524.page new file mode 100755 index 00000000..08ac1814 --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue524.page @@ -0,0 +1,7 @@ + +

Issue 524 Test

+ + + +
+ diff --git a/tests/FunctionalTests/issues/protected/pages/Issue524.php b/tests/FunctionalTests/issues/protected/pages/Issue524.php new file mode 100755 index 00000000..851ff45a --- /dev/null +++ b/tests/FunctionalTests/issues/protected/pages/Issue524.php @@ -0,0 +1,20 @@ +getGlobalization()->setCharset('ISO-8859-1'); + parent::__construct(); + } + + public function validateText($sender, $param) + { + $param->IsValid = false; + $iso8859text=iconv('utf-8', 'iso-8859-1', 'fünf'); + $this->Validator->ErrorMessage = $iso8859text; + } + +} diff --git a/tests/FunctionalTests/issues/tests/Issue524TestCase.php b/tests/FunctionalTests/issues/tests/Issue524TestCase.php new file mode 100755 index 00000000..2582dda0 --- /dev/null +++ b/tests/FunctionalTests/issues/tests/Issue524TestCase.php @@ -0,0 +1,20 @@ +url('issues/index.php?page=Issue524'); + $this->assertContains('Issue 524 Test', $this->source()); + $base='ctl0_Content_'; + + $this->byID("{$base}buttonOk")->click(); + + $this->assertText("{$base}Validator", "fünf"); + } +} -- cgit v1.2.3