summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets')
-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