summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
authortof <>2007-07-17 10:31:06 +0000
committertof <>2007-07-17 10:31:06 +0000
commit29d85fd0937c62e0b096cb4b55c7ab952faee9c1 (patch)
tree005ca57dd81698130bd7cd8ea49ff3e652119526 /tests/FunctionalTests/tickets
parentebba13ebd9566215910897f29b31464f2c65f6b6 (diff)
Add functional test for Ticket #670
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket670.page6
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket670.php9
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket670TestCase.php22
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket670.page b/tests/FunctionalTests/tickets/protected/pages/Ticket670.page
new file mode 100644
index 00000000..b04f9d23
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket670.page
@@ -0,0 +1,6 @@
+<com:TContent ID="Content">
+
+<com:TDatePicker Id="datePicker" InputMode="TextBox" Mode="Button" FromYear="2007" UpToYear="2009"/>
+<com:TLabel id="lbl" />
+<com:TButton id="ok" Text="Ok" onClick="clickOk"/>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket670.php b/tests/FunctionalTests/tickets/protected/pages/Ticket670.php
new file mode 100644
index 00000000..416b0235
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket670.php
@@ -0,0 +1,9 @@
+<?php
+class Ticket670 extends TPage
+{
+ public function clickOk($sender,$param)
+ {
+ $this->lbl->Text=$this->datePicker->getDate();
+ }
+}
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/tests/Ticket670TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket670TestCase.php
new file mode 100644
index 00000000..657e1137
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket670TestCase.php
@@ -0,0 +1,22 @@
+<?php
+class Ticket670TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket670');
+ $this->assertTitle("Verifying Ticket 670");
+
+ $this->type($base."datePicker", '07-07-2003');
+ $this->pause(800);
+ //$this->assertText($base."datePicker",'07-07-2003');
+ $this->click($base."datePickerbutton");
+ $this->pause(800);
+ $this->click($base."ok");
+ $this->pause(800);
+ $this->assertText($base."lbl",'07-07-2007');
+
+ }
+
+}
+?> \ No newline at end of file