diff options
author | tof <> | 2008-02-05 14:26:24 +0000 |
---|---|---|
committer | tof <> | 2008-02-05 14:26:24 +0000 |
commit | 4cf602da9d7cd37e49d7e645f49605e141eb05fb (patch) | |
tree | d9a09353ce69ae6e823644ae105ef40a2554879a /tests/FunctionalTests/tickets/tests | |
parent | 515beaea9b54627f33f58debfc8619be085f8d81 (diff) |
Fixed #785
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r-- | tests/FunctionalTests/tickets/tests/Ticket785TestCase.php | 33 |
1 files changed, 33 insertions, 0 deletions
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 @@ +<?php +class Ticket785TestCase extends SeleniumTestCase +{ + function test() + { + $base = 'ctl0_Content_'; + $this->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 |