From 134bd264482d929de567e45aa684f56e826b7c3f Mon Sep 17 00:00:00 2001 From: tof <> Date: Sat, 29 Sep 2007 15:48:00 +0000 Subject: Functional Test for ticket #708 --- .../tickets/protected/pages/Ticket708.page | 18 +++++++++++++ .../tickets/protected/pages/Ticket708.php | 30 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket708.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket708.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.page b/tests/FunctionalTests/tickets/protected/pages/Ticket708.page new file mode 100644 index 00000000..f92fb34a --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.page @@ -0,0 +1,18 @@ + + + + + Parent->Data['RadioValue']%> + OnCheckedChanged="Page.ChangeRadio"/> + + + + +

+ +

+
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket708.php b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php new file mode 100644 index 00000000..b57aa444 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket708.php @@ -0,0 +1,30 @@ +getIsCallback() && !$this->getIsPostBack()) + { + $this->grid->dataSource=$this->getData(); + $this->grid->dataBind(); + } + } + + protected function getData() + { + return array ( + array ('RadioValue' => 1, 'Text' => 'Radio 1'), + array ('RadioValue' => 2, 'Text' => 'Radio 2'), + array ('RadioValue' => 3, 'Text' => 'Radio 3'), + array ('RadioValue' => 4, 'Text' => 'Radio 4'), + ); + } + + public function ChangeRadio ($sender, $param) + { + $this->Result->setText("You have selected Radio Button #".$sender->getValue()); + } +} +?> \ No newline at end of file -- cgit v1.2.3