diff options
author | mikl <> | 2008-04-18 16:33:54 +0000 |
---|---|---|
committer | mikl <> | 2008-04-18 16:33:54 +0000 |
commit | 287cc40d2110dcbe64fd590852da282d7596461c (patch) | |
tree | 4ffb48d754b579bcb7a908bdd06032d635d0d3c2 /tests/FunctionalTests/tickets/protected/pages | |
parent | 8897ba06f7b959db228aaf8b7d7ec5d50a11ae70 (diff) |
Added test case for #660
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket660.page | 13 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket660.php | 16 |
2 files changed, 29 insertions, 0 deletions
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 @@ +<com:TContent ID="Content"> + +This page uses ISO-8859-1 encoding. +<div> +<com:TActiveTextBox ID="T" /> +<com:TActiveButton ID="CB" OnClick="changeA" Text="Perform CallBack"/> +<com:TButton ID="PB" OnClick="changeA" Text="Perform PostBack"/> +</div> +<div id="output"> +<com:TActiveLabel ID="A" /> +</div> + +</com:TContent> 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 @@ +<?php +Prado::Using ('System.Web.UI.ActiveControls.*'); +class Ticket660 extends TPage { + + public function __construct() { + Prado::getApplication()->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); + } + +} +?> |