From 4cf602da9d7cd37e49d7e645f49605e141eb05fb Mon Sep 17 00:00:00 2001 From: tof <> Date: Tue, 5 Feb 2008 14:26:24 +0000 Subject: Fixed #785 --- .../tickets/protected/pages/Ticket785.page | 20 +++++++++++++ .../tickets/protected/pages/Ticket785.php | 7 +++++ .../tickets/tests/Ticket785TestCase.php | 33 ++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket785.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket785.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket785TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket785.page b/tests/FunctionalTests/tickets/protected/pages/Ticket785.page new file mode 100644 index 00000000..1b402a17 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket785.page @@ -0,0 +1,20 @@ + + + + $('selDate').innerHTML=parameter; + + +

+Client Side Selected date : +

+ + + + + $('selDate2').innerHTML=parameter; + + +

+Client Side Selected date : +

+
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket785.php b/tests/FunctionalTests/tickets/protected/pages/Ticket785.php new file mode 100644 index 00000000..91ba918d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket785.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php new file mode 100644 index 00000000..53851f7a --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php @@ -0,0 +1,33 @@ +open('tickets/index.php?page=Ticket785'); + $this->assertTitle("Verifying Ticket 785"); + + $this->assertText('selDate', ''); + $this->select($base."datePicker_year", "2007"); + $this->pause(800); + $expectedDate=date("d-m").'-2007'; + $this->assertText('selDate', $expectedDate); + + $this->click($base."datePickerbutton"); + $this->pause(800); + $this->click("css=input.todayButton"); + $this->pause(800); + $this->clickAt("css=body","0,0"); // Hide calendar + $expectedDate=date("d-m-Y"); + $this->assertText('selDate', $expectedDate); + + $this->assertText('selDate2', ''); + $this->type($base.'datePicker2', '12/05/2006'); + $this->pause(800); + $this->clickAt("css=body","0,0"); + $this->assertText('selDate2', '12/05/2006'); + + } + +} +?> \ No newline at end of file -- cgit v1.2.3