diff options
author | David <david0@github.com> | 2014-07-10 17:32:37 +0200 |
---|---|---|
committer | David <david0@github.com> | 2014-07-10 18:36:30 +0200 |
commit | 37a1d886c6960080bbd03cad757c722b494a0220 (patch) | |
tree | 3304e48455fe422bb69e1c531d860f6533e8bb71 /tests/FunctionalTests/issues/protected | |
parent | 6dffcae480706f7c3583c5cfd4360c6c11aacabb (diff) |
Testcase for Issue #524
Diffstat (limited to 'tests/FunctionalTests/issues/protected')
-rwxr-xr-x | tests/FunctionalTests/issues/protected/pages/Issue524.page | 7 | ||||
-rwxr-xr-x | tests/FunctionalTests/issues/protected/pages/Issue524.php | 20 |
2 files changed, 27 insertions, 0 deletions
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 @@ +<com:TContent ID="Content"> + <h1>Issue 524 Test</h1> + <com:TTextBox ID="textbox1" /> + <com:TActiveButton ID="buttonOk" Text="Ok button" /> + <com:TActiveCustomValidator ID="Validator" ControlToValidate="textbox1" OnServerValidate="validateText" Text="Input is invalid." /> +</com:TContent> + 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 @@ +<?php + +Prado::using('System.Web.UI.ActiveControls.*'); + +class Issue524 extends TPage +{ + + public function __construct() { + Prado::getApplication()->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; + } + +} |