From f4f802efe3cccd68f3a6b40eb8312bfd8e24d643 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 12:34:53 +0000 Subject: Fixed #535 --- .../tickets/protected/pages/Ticket535.page | 15 +++++++++ .../tickets/protected/pages/Ticket535.php | 16 ++++++++++ .../tickets/tests/Ticket535TestCase.php | 36 ++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket535.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket535.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket535TestCase.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.page b/tests/FunctionalTests/tickets/protected/pages/Ticket535.page new file mode 100644 index 00000000..4b9ba6fe --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.page @@ -0,0 +1,15 @@ + + +

Without GroupName it is OK

+
+
+ +

+

But with the same...

+
+
+ + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket535.php b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php new file mode 100644 index 00000000..4f9b2f51 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket535.php @@ -0,0 +1,16 @@ +label1->Text = "radio1 checked:{".$this->radio1->getChecked()."} radio2 checked:{".$this->radio2->getChecked()."} "; + } + + public function group($sender, $param) + { + $this->label1->Text = "bad_radio1 checked:{".$this->bad_radio1->getChecked()."} bad_radio2 checked:{".$this->bad_radio2->getChecked()."} "; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php new file mode 100644 index 00000000..26f70803 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket535TestCase.php @@ -0,0 +1,36 @@ +open('tickets/index.php?page=Ticket535'); + $this->assertTitle("Verifying Ticket 535"); + + $this->assertText("{$base}label1", "Label 1"); + + $this->click("{$base}radio1"); + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{}'); + + $this->click("{$base}radio2"); + $this->click("{$base}button1"); + $this->pause(800); + $this->assertText("{$base}label1", 'radio1 checked:{1} radio2 checked:{1}'); + + $this->click("{$base}bad_radio1"); + $this->click("{$base}button2"); + $this->pause(800); + $this->assertText("{$base}label1", 'bad_radio1 checked:{1} bad_radio2 checked:{}'); + + $this->click("{$base}bad_radio2"); + $this->click("{$base}button2"); + $this->pause(800); + $this->assertText("{$base}label1", 'bad_radio1 checked:{} bad_radio2 checked:{1}'); + } + +} + +?> \ No newline at end of file -- cgit v1.2.3