From 29d85fd0937c62e0b096cb4b55c7ab952faee9c1 Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 17 Jul 2007 10:31:06 +0000 Subject: Add functional test for Ticket #670 --- .gitattributes | 1 + .../tickets/protected/pages/Ticket670.page | 6 ++++++ .../tickets/protected/pages/Ticket670.php | 9 +++++++++ .../tickets/tests/Ticket670TestCase.php | 22 ++++++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket670.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket670.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket670TestCase.php diff --git a/.gitattributes b/.gitattributes index b52213d8..3d890f20 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2626,6 +2626,7 @@ tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl -text tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page -text tests/FunctionalTests/tickets/protected/pages/Ticket656.page -text tests/FunctionalTests/tickets/protected/pages/Ticket659.page -text +tests/FunctionalTests/tickets/protected/pages/Ticket670.page -text tests/FunctionalTests/tickets/protected/pages/Ticket68.page -text tests/FunctionalTests/tickets/protected/pages/Ticket72.page -text tests/FunctionalTests/tickets/protected/pages/Ticket72.php -text 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 @@ + + + + + + \ 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 @@ +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 @@ +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 -- cgit v1.2.3