From 682f7ef6933f4ad485baedddf7a30367d003d7bf Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 25 Jan 2007 05:49:22 +0000 Subject: Fixed #502 --- .../protected/pages/DisplayStyleTest.page | 22 ++++++++++++++++++ .../protected/pages/DisplayStyleTest.php | 26 ++++++++++++++++++++++ .../validators/tests/DatePickerTestCase.php | 1 + 3 files changed, 49 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page new file mode 100644 index 00000000..df1db27a --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page @@ -0,0 +1,22 @@ + +

Display Style Test

+ +
+Some test + +buttons + +here. +
+ + + + + + + + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php new file mode 100644 index 00000000..a49a8bfa --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php @@ -0,0 +1,26 @@ +button1->Display="Dynamic"; + } + + function hide_button1() + { + $this->button1->Display="None"; + } + + function show_button2() + { + $this->button2->Display="Fixed"; + } + + function hide_button2() + { + $this->button2->Display="Hidden"; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php index 95eb88e3..320802e4 100644 --- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php +++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php @@ -29,6 +29,7 @@ class DatePickerTestCase extends SeleniumTestCase $this->type("{$base}picker1", "13/4/2006"); $this->select("{$base}picker2_month", "label=9"); $this->select("{$base}picker2_day", "label=10"); + $this->select("{$base}picker2_year", "label=2006"); $this->type("{$base}picker3", "14/4/2006"); $this->type("{$base}picker4", "7/4/2006"); $this->select("{$base}picker5_day", "label=6"); -- cgit v1.2.3