summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxue <>2006-02-26 03:54:55 +0000
committerxue <>2006-02-26 03:54:55 +0000
commitcad2910ee9f2554570d16aab283bd6c18b5c1d0b (patch)
treefa2cb495085489663657445898ed4f921b49f6a4 /tests
parent6e59b5a57df511e2ee92f1f66eb0af072486ae95 (diff)
Fixed #72.
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket72.page7
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket72.php13
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket72TestCase.php16
3 files changed, 36 insertions, 0 deletions
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 @@
+<com:TContent ID="Content">
+<com:TTextBox ID="K1" />
+<com:TTextBox ID="K2" />
+<com:TButton Text="Send" onClick="ButtonClick" />
+
+<com:TLabel ID="ResultLabel" />
+</com:TContent> \ 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 @@
+<?php
+
+class Ticket72 extends TPage
+{
+ public function ButtonClick($sender,$param)
+ {
+ $a1 = $this->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 @@
+<?php
+
+class Ticket72TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->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