From 75293bddc7faea69021f5e29ac9e4df3f04c4f36 Mon Sep 17 00:00:00 2001 From: tof <> Date: Wed, 26 Sep 2007 12:57:46 +0000 Subject: Add test for ticket #671 --- .../tickets/protected/pages/Ticket671.page | 34 ++++++++++++++++++++++ .../tickets/protected/pages/Ticket671.php | 33 +++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket671.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket671.php (limited to 'tests/FunctionalTests/tickets/protected/pages') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket671.page b/tests/FunctionalTests/tickets/protected/pages/Ticket671.page new file mode 100644 index 00000000..22c899f5 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket671.page @@ -0,0 +1,34 @@ + + + + + + + + + + +

+ + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket671.php b/tests/FunctionalTests/tickets/protected/pages/Ticket671.php new file mode 100644 index 00000000..04bd1a7e --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket671.php @@ -0,0 +1,33 @@ +setIsValid($param->getValue()==3); + } + + public function selectItem ($sender, $param) + { + $this->lblResult->text="You have selected '".$sender->getSelectedItem()->getText()."'."; + if (!$this->getIsValid()) $this->lblResult->text .= " But this is not valid !"; + } + + public function submit ($sender, $param) + { + $this->lblResult->text="You have successfully validated the form"; + } + + public function validateTextBox($sender,$param) { + $param->setIsValid(strtolower($param->getValue())=="prado"); + } + + public function submit2($sender,$param) { + $this->lblResult2->text="Thanks !"; + } + + +} +?> \ No newline at end of file -- cgit v1.2.3