summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
authorknut <>2008-08-05 18:02:53 +0000
committerknut <>2008-08-05 18:02:53 +0000
commit02014e728e09fe672aabb946176492b9ed51606d (patch)
tree22c6baaeeaa8bdb8f9445290604f4f801758fafd /tests/FunctionalTests/tickets
parent5cb8bf3a2d0f7d7b9b0b5907a80aee85a8c6f2d9 (diff)
fixed #897
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket897.page8
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket897.php9
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket897TestCase.php19
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket897.page b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page
new file mode 100644
index 00000000..93237b98
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page
@@ -0,0 +1,8 @@
+<com:TContent ID="Content">
+
+ <com:TDatePicker ID="Date" DateFormat="MM/dd" 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/Ticket897.php b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php
new file mode 100644
index 00000000..b0b8959f
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php
@@ -0,0 +1,9 @@
+<?php
+class Ticket897 extends TPage {
+
+ public function onButtonClicked($sender, $param) {
+ $this->Output->Text = date('Y-m-d', $this->Date->TimeStamp);
+ }
+
+}
+?>
diff --git a/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php
new file mode 100644
index 00000000..eaf4e47a
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php
@@ -0,0 +1,19 @@
+<?php
+
+class Ticket897TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket897');
+ $this->assertTitle("Verifying Ticket 897");
+ $base = 'ctl0_Content_';
+
+ $this->select($base.'Date_month', 10);
+ $this->select($base.'Date_day', 22);
+
+ $this->clickAndWait($base.'SendButton');
+ $this->assertTextPresent('2008-10-22');
+ }
+}
+
+?>