From 9e21d160ead61cd0ed86c16a0668c50b14f58baf Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 13 Apr 2006 12:38:46 +0000 Subject: Added test case for Ticket#121. --- .../tickets/protected/pages/Ticket121.page | 16 ++++++++++++++++ .../tickets/protected/pages/Ticket121.php | 11 +++++++++++ .../tickets/tests/Ticket121TestCase.php | 19 +++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket121.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket121.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket121TestCase.php (limited to 'tests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket121.page b/tests/FunctionalTests/tickets/protected/pages/Ticket121.page new file mode 100644 index 00000000..9c9633d3 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket121.page @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket121.php b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php new file mode 100644 index 00000000..1a625d83 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket121.php @@ -0,0 +1,11 @@ +Result->Text="clicked at ({$param->X},{$param->Y})"; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php new file mode 100644 index 00000000..7453aeef --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket121TestCase.php @@ -0,0 +1,19 @@ +open('tickets/index.php?page=Ticket121'); + $this->type("ctl0\$Content\$FooTextBox", ""); + $this->verifyNotVisible('ctl0_Content_ctl1'); + $this->click("//input[@type='image' and @id='ctl0_Content_ctl0']", ""); + $this->verifyVisible('ctl0_Content_ctl1'); + $this->type("ctl0\$Content\$FooTextBox", "content"); + $this->clickAndWait("//input[@type='image' and @id='ctl0_Content_ctl0']", ""); + $this->verifyNotVisible('ctl0_Content_ctl1'); + $this->verifyTextPresent("clicked at", ""); + } +} + +?> \ No newline at end of file -- cgit v1.2.3