From c67e6384d8d0695bf20693674ecfcec019ec5015 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 25 Sep 2007 13:17:38 +0000 Subject: Add Ticket #679 testcase --- .../tickets/protected/pages/Ticket679.page | 26 +++++++++++++ .../tickets/protected/pages/Ticket679.php | 43 ++++++++++++++++++++++ .../tickets/tests/Ticket679TestCase.php | 37 +++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket679.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket679.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket679TestCase.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket679.page b/tests/FunctionalTests/tickets/protected/pages/Ticket679.page new file mode 100644 index 00000000..ba4b75e4 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket679.page @@ -0,0 +1,26 @@ + + +repeater bug
+ + + + + + + + + + + + +

+ +radiobutton bug
+ + + + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket679.php b/tests/FunctionalTests/tickets/protected/pages/Ticket679.php new file mode 100644 index 00000000..c28252bd --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket679.php @@ -0,0 +1,43 @@ +Page->IsPostBack && !$this->Page->IsCallBack) + { + $this->Repeater->DataSource = $dataArray ; + $this->Repeater->dataBind() ; + } + } + + public function changeText( $sender, $param ) + { + $obj = $this->myLabel ; + $obj->Text = $sender->Text ; + $obj->Display="Dynamic"; + + // solution + //$this->CallBackClient->show($obj, true); + } + + + // activeradiobutton bug + public function checkRadioButton($sender, $param){ + $this->myRadioButton->checked = true; + } + public function uncheckRadioButton($sender, $param){ + $this->myRadioButton->checked = false; + + // solution + //$this->CallbackClient->check($this->myRadioButton, false); + } + +} +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php new file mode 100644 index 00000000..9ab29115 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket679TestCase.php @@ -0,0 +1,37 @@ +open('tickets/index.php?page=Ticket679'); + $this->assertTitle("Verifying Ticket 679"); + + // First part of ticket : Repeater bug + $this->click($base."ctl0"); + $this->pause(800); + $this->assertText($base."myLabel",'outside'); + $this->verifyVisible($base."myLabel"); + + // Reload completly the page + $this->refresh(); + $this->pause(800); + + $this->click($base."Repeater_ctl0_ctl0"); + $this->pause(800); + $this->assertText($base."myLabel",'inside'); + $this->verifyVisible($base."myLabel"); + + // Second part of ticket : ARB bug + $this->verifyNotChecked($base."myRadioButton"); + $this->click($base."ctl1"); + $this->pause(800); + $this->verifyChecked($base."myRadioButton"); + $this->click($base."ctl2"); + $this->pause(800); + $this->verifyNotChecked($base."myRadioButton"); + $this->pause(800); + } + +} +?> \ No newline at end of file -- cgit v1.2.3