From 3c83939b045813d691d4b701b71fd4d01c8492b6 Mon Sep 17 00:00:00 2001 From: tof <> Date: Fri, 28 Sep 2007 09:34:07 +0000 Subject: Add a test for Ticket #691 --- .../tickets/protected/pages/Ticket691.page | 22 ++++++++++++++++++++++ .../tickets/protected/pages/Ticket691.php | 13 +++++++++++++ .../tickets/tests/Ticket691TestCase.php | 17 +++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket691.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket691.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket691TestCase.php (limited to 'tests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket691.page b/tests/FunctionalTests/tickets/protected/pages/Ticket691.page new file mode 100644 index 00000000..602f223a --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket691.page @@ -0,0 +1,22 @@ + + + + + + $('<%=$this->Title->ClientID%>').innerHTML = 'Thanks'; + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket691.php b/tests/FunctionalTests/tickets/protected/pages/Ticket691.php new file mode 100644 index 00000000..a47a6a9d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket691.php @@ -0,0 +1,13 @@ +Rating=$sender->SelectedIndex+1; + $this->Result->Text="You vote ".$sender->Rating; + } +} +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket691TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket691TestCase.php new file mode 100644 index 00000000..12371e74 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket691TestCase.php @@ -0,0 +1,17 @@ +open('tickets/index.php?page=Ticket691'); + $this->assertTitle("Verifying Ticket 691"); + + $this->click($base."List_c2"); + $this->pause(800); + $this->assertText($base."Title", "Thanks"); + $this->assertText($base."Result", "You vote 3"); + } + +} +?> \ No newline at end of file -- cgit v1.2.3