From ab5bd4f0f9e5b76a219a8b3d353ce32d9255edb9 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Fri, 6 Jan 2006 04:40:33 +0000
Subject: Adding BasicI18N tests
---
.gitattributes | 8 +++
tests/FunctionalTests/protected/application.xml | 24 +++++++++
tests/FunctionalTests/protected/pages/Home.page | 34 ++++++++++++
.../protected/pages/Home.zh_CN.page | 34 ++++++++++++
.../protected/pages/I18N/BasicI18N.page | 60 +++++++++++++++++++++
.../protected/pages/I18N/BasicI18N.php | 34 ++++++++++++
.../FunctionalTests/protected/runtime/config.cache | Bin 0 -> 1543 bytes
.../FunctionalTests/protected/runtime/global.cache | 1 +
.../protected/tests/HomePageTest.php | 21 ++++++++
9 files changed, 216 insertions(+)
create mode 100644 tests/FunctionalTests/protected/application.xml
create mode 100644 tests/FunctionalTests/protected/pages/Home.page
create mode 100644 tests/FunctionalTests/protected/pages/Home.zh_CN.page
create mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
create mode 100644 tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
create mode 100644 tests/FunctionalTests/protected/runtime/config.cache
create mode 100644 tests/FunctionalTests/protected/runtime/global.cache
create mode 100644 tests/FunctionalTests/protected/tests/HomePageTest.php
diff --git a/.gitattributes b/.gitattributes
index 3b55551d..67a3de6e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -281,6 +281,14 @@ requirements/template.html -text
tests/FunctionalTests/README.txt -text
tests/FunctionalTests/config.php -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/runtime/config.cache -text
+tests/FunctionalTests/protected/runtime/global.cache -text
+tests/FunctionalTests/protected/tests/HomePageTest.php -text
tests/FunctionalTests/selenium/SeleneseRunner.html -text
tests/FunctionalTests/selenium/SeleniumLog.html -text
tests/FunctionalTests/selenium/TestRunner-splash.html -text
diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml
new file mode 100644
index 00000000..0bc6a7c7
--- /dev/null
+++ b/tests/FunctionalTests/protected/application.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Home.page b/tests/FunctionalTests/protected/pages/Home.page
new file mode 100644
index 00000000..606a17ac
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Home.page
@@ -0,0 +1,34 @@
+
+
+
+
+
+ Prado Functional Tests
+
+
+
+
+
+Prado Functional Tests
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Home.zh_CN.page b/tests/FunctionalTests/protected/pages/Home.zh_CN.page
new file mode 100644
index 00000000..df7a9cc0
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Home.zh_CN.page
@@ -0,0 +1,34 @@
+
+
+
+
+
+ Prado Functional Tests (zh_CN)
+
+
+
+
+
+Prado Functional Tests (zh_CN)
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
new file mode 100644
index 00000000..9d1b8588
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
@@ -0,0 +1,60 @@
+
+
+
+
+
+ Basic I18N Test
+
+
+
+
+Basic I18N Test
+
+ Hello {name}
+
+
+ Name
+
+
+
+
+
+
+
+
+
+
+
+ [0] None |[1] One thing. |[2,Inf) Many things.
+
+
+
+ [0] None |[1] One thing. |[2,Inf) Many things.
+
+
+
+ [0] None |[1] One thing. |[2,Inf) Many things.
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
new file mode 100644
index 00000000..50d493d8
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
@@ -0,0 +1,34 @@
+
+ * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
+ * @package ${package}
+ */
+class BasicI18N extends TPage
+{
+}
+
+/**
+ * ${classname}
+ *
+ * ${description}
+ *
+ * @author Wei Zhuo
+ * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
+ * @package ${package}
+ */
+class BasicI18NTestCase extends SeleniumTestCase
+{
+ function testI18N()
+ {
+ $page = Prado::getApplication()->getTestPage(__FILE__);
+ $this->open($page);
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/runtime/config.cache b/tests/FunctionalTests/protected/runtime/config.cache
new file mode 100644
index 00000000..1f1f82fd
Binary files /dev/null and b/tests/FunctionalTests/protected/runtime/config.cache differ
diff --git a/tests/FunctionalTests/protected/runtime/global.cache b/tests/FunctionalTests/protected/runtime/global.cache
new file mode 100644
index 00000000..c0bf9e01
--- /dev/null
+++ b/tests/FunctionalTests/protected/runtime/global.cache
@@ -0,0 +1 @@
+a:1:{s:35:"prado:pagestatepersister:privatekey";s:32:"7ff407291c6929ec690bdf57a2dd1a7d";}
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/tests/HomePageTest.php b/tests/FunctionalTests/protected/tests/HomePageTest.php
new file mode 100644
index 00000000..777f27fd
--- /dev/null
+++ b/tests/FunctionalTests/protected/tests/HomePageTest.php
@@ -0,0 +1,21 @@
+
+ * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $
+ * @package ${package}
+ */
+class HomePageTest extends SeleniumTestCase
+{
+ function testHomePage()
+ {
+ $this->open("tests.php");
+ $this->verifyTitle("Prado Functional Tests");
+ }
+}
+
+?>
\ No newline at end of file
--
cgit v1.2.3