From cad2910ee9f2554570d16aab283bd6c18b5c1d0b Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 26 Feb 2006 03:54:55 +0000 Subject: Fixed #72. --- .../tickets/protected/pages/Ticket72.page | 7 +++++++ .../FunctionalTests/tickets/protected/pages/Ticket72.php | 13 +++++++++++++ tests/FunctionalTests/tickets/tests/Ticket72TestCase.php | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket72.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket72.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket72TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket72.page b/tests/FunctionalTests/tickets/protected/pages/Ticket72.page new file mode 100644 index 00000000..26667406 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket72.page @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket72.php b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php new file mode 100644 index 00000000..02432886 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket72.php @@ -0,0 +1,13 @@ +K1->SafeText; + $a2 = $this->K2->SafeText; + $this->ResultLabel->Text = $a2; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php new file mode 100644 index 00000000..6d864899 --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket72TestCase.php @@ -0,0 +1,16 @@ +open('tickets/index.php?page=Ticket72'); + $this->type("ctl0\$Content\$K1", "abc"); + $this->type("ctl0\$Content\$K2", "efg"); + $this->clickAndWait("//input[@type='submit' and @value='Send']", ""); + $this->verifyTextPresent("efg", ""); + $this->verifyTextNotPresent("abcefg", ""); + } +} + +?> \ No newline at end of file -- cgit v1.2.3