diff options
author | tof <> | 2007-06-28 08:41:57 +0000 |
---|---|---|
committer | tof <> | 2007-06-28 08:41:57 +0000 |
commit | 8a38b5643655c82a843c4e429cbc3fafdff198ce (patch) | |
tree | e26c044c2fb5910730f325a68f26dc5abba6eaa6 /tests/FunctionalTests/tickets/protected/pages | |
parent | 353b3d04ce7a03c7c87f7343e766b3f45e96003c (diff) |
Add functional test case for Ticket659
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
5 files changed, 63 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/ExtendedToggleImageButton.php b/tests/FunctionalTests/tickets/protected/pages/ExtendedToggleImageButton.php new file mode 100644 index 00000000..2d0b709e --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/ExtendedToggleImageButton.php @@ -0,0 +1,17 @@ +<?php +/** + * + * + * @author Christophe BOULAIN (Christophe.Boulain@ceram.fr) + * @copyright Copyright © 2007, CERAM Sophia Antipolis + * @license url nameoflicense + * @version $Id$ + * + */ + +prado::using ('Application.controls.ToggleImageButton'); + +class ExtendedToggleImageButton extends ToggleImageButton { + +} +?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket659.page b/tests/FunctionalTests/tickets/protected/pages/Ticket659.page new file mode 100644 index 00000000..66b05eda --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket659.page @@ -0,0 +1,4 @@ +<com:TContent ID="Content"> +<com:ExtendedToggleImageButton id="btn" OnClick="clickToggleButton" State="Down"/> +<com:TLabel id="lbl" Text="Down"/> +</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket659.php b/tests/FunctionalTests/tickets/protected/pages/Ticket659.php new file mode 100644 index 00000000..d294a831 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket659.php @@ -0,0 +1,19 @@ +<?php +/** + * + * + * @author Christophe BOULAIN (Christophe.Boulain@ceram.fr) + * @copyright Copyright © 2007, CERAM Sophia Antipolis + * @license url nameoflicense + * @version $Id$ + * + */ + +prado::using ('Application.pages.ExtendedToggleImageButton'); + +class Ticket659 extends TPage { + public function clickToggleButton ($sender, $param) { + $this->lbl->Text=$sender->State; + } +} +?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/ToggleTest.page b/tests/FunctionalTests/tickets/protected/pages/ToggleTest.page new file mode 100644 index 00000000..0d633657 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/ToggleTest.page @@ -0,0 +1,4 @@ +<com:TContent ID="Content"> +<com:ToggleImageButton id="btn" OnClick="clickToggleButton" State="Down"/> +<com:TLabel id="lbl" Text="Down"/> +</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/ToggleTest.php b/tests/FunctionalTests/tickets/protected/pages/ToggleTest.php new file mode 100644 index 00000000..2c12cb72 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/ToggleTest.php @@ -0,0 +1,19 @@ +<?php +/** + * + * + * @author Christophe BOULAIN (Christophe.Boulain@ceram.fr) + * @copyright Copyright © 2007, CERAM Sophia Antipolis + * @license url nameoflicense + * @version $Id$ + * + */ + +prado::using ('Application.controls.ToggleImageButton'); + +class ToggleTest extends TPage { + public function clickToggleButton ($sender, $param) { + $this->lbl->Text=$sender->State; + } +} +?>
\ No newline at end of file |