summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
authorknut <>2008-07-20 16:04:35 +0000
committerknut <>2008-07-20 16:04:35 +0000
commit101e78e6dab863460d3cbc112d5d795370276fc7 (patch)
treeec2df752faec2c23878ecc708d235b142b2a8245 /tests/FunctionalTests/tickets
parent5e82afde4d98b26b36fc14980efa75393d6ef77e (diff)
fixed #886
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket886.page8
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket886.php9
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket886TestCase.php15
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket886.page b/tests/FunctionalTests/tickets/protected/pages/Ticket886.page
new file mode 100644
index 00000000..ea9319fd
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket886.page
@@ -0,0 +1,8 @@
+<com:TContent ID="Content">
+
+ <com:TDatePicker ID="Year" DateFormat="yyyy" InputMode="DropDownList"/>
+ <com:TButton ID="SendButton" ButtonType="Submit" Text="Send" onClick="onButtonClicked" />
+
+ <com:TLabel ID="Output"/>
+
+</com:TContent>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket886.php b/tests/FunctionalTests/tickets/protected/pages/Ticket886.php
new file mode 100644
index 00000000..f14d067d
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket886.php
@@ -0,0 +1,9 @@
+<?php
+class Ticket886 extends TPage {
+
+ public function onButtonClicked($sender, $param) {
+ $this->Output->Text = date('Y-m-d', $this->Year->TimeStamp);
+ }
+
+}
+?>
diff --git a/tests/FunctionalTests/tickets/tests/Ticket886TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket886TestCase.php
new file mode 100644
index 00000000..17e4295f
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket886TestCase.php
@@ -0,0 +1,15 @@
+<?php
+
+class Ticket886TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket886');
+ $this->assertTitle("Verifying Ticket 886");
+ $base = 'ctl0_Content_';
+ $this->clickAndWait($base.'SendButton');
+ $this->assertTextPresent('2008-01-01');
+ }
+}
+
+?>