From cb7b7f1929dce12936eca957caa432e74c6dc7de Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sun, 12 Mar 2006 04:43:03 +0000
Subject: reorganized FT tests.
---
.gitattributes | 33 ++++-----
.gitignore | 1 -
tests/FunctionalTests/features.php | 39 ++++++++++
tests/FunctionalTests/features/index.php | 8 ++
.../features/protected/application.xml | 9 +++
.../features/protected/controls/Layout.php | 8 ++
.../features/protected/controls/Layout.tpl | 27 +++++++
.../features/protected/pages/ColorPicker.page | 40 ++++++++++
.../features/protected/pages/DatePicker.page | 59 +++++++++++++++
.../features/protected/pages/FeatureList.page | 3 +
.../features/protected/pages/FeatureList.php | 34 +++++++++
.../features/protected/pages/HtmlArea.page | 10 +++
.../features/protected/pages/I18N/BasicI18N.page | 31 ++++++++
.../features/protected/pages/I18N/BasicI18N.php | 45 ++++++++++++
.../features/protected/pages/I18N/Home.page | 3 +
.../features/protected/pages/I18N/Home.zh_CN.page | 3 +
.../features/protected/pages/I18N/config.xml | 12 +++
.../features/protected/pages/RatingList.page | 41 +++++++++++
tests/FunctionalTests/index.php | 9 ++-
tests/FunctionalTests/protected/application.xml | 18 -----
tests/FunctionalTests/protected/pages/Home.page | 6 --
.../protected/pages/Home.zh_CN.page | 34 ---------
.../protected/pages/I18N/BasicI18N.page | 31 --------
.../protected/pages/I18N/BasicI18N.php | 45 ------------
tests/FunctionalTests/protected/pages/Layout.php | 8 --
tests/FunctionalTests/protected/pages/Layout.tpl | 37 ----------
.../protected/pages/TicketTestPage.php | 14 ----
.../protected/pages/TicketTestPage.tpl | 45 ------------
.../protected/pages/UI/ColorPicker.page | 40 ----------
.../protected/pages/UI/DatePicker.page | 59 ---------------
.../protected/pages/UI/RatingList.page | 41 -----------
.../protected/pages/UI/testHtmlArea.page | 10 ---
.../protected/pages/ViewSource.page | 23 ------
.../FunctionalTests/protected/pages/ViewSource.php | 85 ----------------------
tests/FunctionalTests/protected/pages/config.xml | 11 ---
tests/FunctionalTests/tickets/application.xml | 4 -
36 files changed, 394 insertions(+), 532 deletions(-)
delete mode 100644 .gitignore
create mode 100644 tests/FunctionalTests/features.php
create mode 100644 tests/FunctionalTests/features/index.php
create mode 100644 tests/FunctionalTests/features/protected/application.xml
create mode 100644 tests/FunctionalTests/features/protected/controls/Layout.php
create mode 100644 tests/FunctionalTests/features/protected/controls/Layout.tpl
create mode 100644 tests/FunctionalTests/features/protected/pages/ColorPicker.page
create mode 100644 tests/FunctionalTests/features/protected/pages/DatePicker.page
create mode 100644 tests/FunctionalTests/features/protected/pages/FeatureList.page
create mode 100644 tests/FunctionalTests/features/protected/pages/FeatureList.php
create mode 100644 tests/FunctionalTests/features/protected/pages/HtmlArea.page
create mode 100644 tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.page
create mode 100644 tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php
create mode 100644 tests/FunctionalTests/features/protected/pages/I18N/Home.page
create mode 100644 tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page
create mode 100644 tests/FunctionalTests/features/protected/pages/I18N/config.xml
create mode 100644 tests/FunctionalTests/features/protected/pages/RatingList.page
delete mode 100644 tests/FunctionalTests/protected/application.xml
delete mode 100644 tests/FunctionalTests/protected/pages/Home.page
delete mode 100644 tests/FunctionalTests/protected/pages/Home.zh_CN.page
delete mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
delete mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
delete mode 100644 tests/FunctionalTests/protected/pages/Layout.php
delete mode 100644 tests/FunctionalTests/protected/pages/Layout.tpl
delete mode 100644 tests/FunctionalTests/protected/pages/TicketTestPage.php
delete mode 100644 tests/FunctionalTests/protected/pages/TicketTestPage.tpl
delete mode 100644 tests/FunctionalTests/protected/pages/UI/ColorPicker.page
delete mode 100644 tests/FunctionalTests/protected/pages/UI/DatePicker.page
delete mode 100644 tests/FunctionalTests/protected/pages/UI/RatingList.page
delete mode 100644 tests/FunctionalTests/protected/pages/UI/testHtmlArea.page
delete mode 100644 tests/FunctionalTests/protected/pages/ViewSource.page
delete mode 100644 tests/FunctionalTests/protected/pages/ViewSource.php
delete mode 100644 tests/FunctionalTests/protected/pages/config.xml
delete mode 100644 tests/FunctionalTests/tickets/application.xml
diff --git a/.gitattributes b/.gitattributes
index e2289646..7d1573b9 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -782,23 +782,23 @@ requirements/template-zh.html -text
requirements/template.html -text
tests/FunctionalTests/README.txt -text
tests/FunctionalTests/config.php -text
+tests/FunctionalTests/features.php -text
+tests/FunctionalTests/features/index.php -text
+tests/FunctionalTests/features/protected/application.xml -text
+tests/FunctionalTests/features/protected/controls/Layout.php -text
+tests/FunctionalTests/features/protected/controls/Layout.tpl -text
+tests/FunctionalTests/features/protected/pages/ColorPicker.page -text
+tests/FunctionalTests/features/protected/pages/DatePicker.page -text
+tests/FunctionalTests/features/protected/pages/FeatureList.page -text
+tests/FunctionalTests/features/protected/pages/FeatureList.php -text
+tests/FunctionalTests/features/protected/pages/HtmlArea.page -text
+tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.page -text
+tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php -text
+tests/FunctionalTests/features/protected/pages/I18N/Home.page -text
+tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page -text
+tests/FunctionalTests/features/protected/pages/I18N/config.xml -text
+tests/FunctionalTests/features/protected/pages/RatingList.page -text
tests/FunctionalTests/index.php -text
-tests/FunctionalTests/protected/application.xml -text
-tests/FunctionalTests/protected/pages/Home.page -text
-tests/FunctionalTests/protected/pages/Home.zh_CN.page -text
-tests/FunctionalTests/protected/pages/I18N/BasicI18N.page -text
-tests/FunctionalTests/protected/pages/I18N/BasicI18N.php -text
-tests/FunctionalTests/protected/pages/Layout.php -text
-tests/FunctionalTests/protected/pages/Layout.tpl -text
-tests/FunctionalTests/protected/pages/TicketTestPage.php -text
-tests/FunctionalTests/protected/pages/TicketTestPage.tpl -text
-tests/FunctionalTests/protected/pages/UI/ColorPicker.page -text
-tests/FunctionalTests/protected/pages/UI/DatePicker.page -text
-tests/FunctionalTests/protected/pages/UI/RatingList.page -text
-tests/FunctionalTests/protected/pages/UI/testHtmlArea.page -text
-tests/FunctionalTests/protected/pages/ViewSource.page -text
-tests/FunctionalTests/protected/pages/ViewSource.php -text
-tests/FunctionalTests/protected/pages/config.xml -text
tests/FunctionalTests/quickstart.php -text
tests/FunctionalTests/quickstart/Advanced/I18N.php -text
tests/FunctionalTests/quickstart/Controls/BulletedListTestCase.php -text
@@ -902,7 +902,6 @@ tests/FunctionalTests/selenium/xmlextras.js -text
tests/FunctionalTests/selenium/xpath.js -text
tests/FunctionalTests/tests.php -text
tests/FunctionalTests/tickets.php -text
-tests/FunctionalTests/tickets/application.xml -text
tests/FunctionalTests/tickets/index.php -text
tests/FunctionalTests/tickets/protected/pages/Layout.php -text
tests/FunctionalTests/tickets/protected/pages/Layout.tpl -text
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 201b8a2b..00000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-tests/FunctionalTests/protected/messages/zh_CN
diff --git a/tests/FunctionalTests/features.php b/tests/FunctionalTests/features.php
new file mode 100644
index 00000000..71c8ce3a
--- /dev/null
+++ b/tests/FunctionalTests/features.php
@@ -0,0 +1,39 @@
+get_directories(dirname(__FILE__).'/features/tests', $groups);
+
+ return $groups;
+ }
+
+ protected function get_directories($base,&$groups)
+ {
+ $groups[] = realpath($base);
+ $dirs = new DirectoryIterator($base);
+ foreach($dirs as $dir)
+ if(!$dir->isDot() && $dir->isDir()
+ && !preg_match("/\.svn/", $dir->getPathName()))
+ $this->get_directories($dir->getPathName(), $groups);
+ }
+}
+
+
+$root = dirname(__FILE__);
+$server = SimpleSeleniumProxyServer::getInstance($root);
+
+$tester = new PradoSimpleTester(new BrowserTestConfig());
+$browser_tests = $tester->getTests();
+$browser_tests->run(new SimpleReporter());
+
+$server->handleRequest();
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/features/index.php b/tests/FunctionalTests/features/index.php
new file mode 100644
index 00000000..fe127639
--- /dev/null
+++ b/tests/FunctionalTests/features/index.php
@@ -0,0 +1,8 @@
+run();
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/application.xml b/tests/FunctionalTests/features/protected/application.xml
new file mode 100644
index 00000000..642152cc
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/application.xml
@@ -0,0 +1,9 @@
+
+
+
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
asda
Default TDatePicker | +
+ |
+
Button Mode | +
+ |
+
InputMode="DropDownList", custom DateFormat | +
+ |
+
InputMode="DropDownList", custom DateFormat, Culture | +
+ |
+
Custom DateFormat, culture, ImageButton mode | +
+ |
+
Custom DateFormat, DropDownList, pre-selected date set in as Text | +
+ |
+
DropDownList, pre-selected date as integer | +
+ |
+