From cb7b7f1929dce12936eca957caa432e74c6dc7de Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 12 Mar 2006 04:43:03 +0000 Subject: reorganized FT tests. --- .../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 ++++++ 5 files changed, 94 insertions(+) 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 (limited to 'tests/FunctionalTests/features/protected/pages/I18N') diff --git a/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.page b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.page new file mode 100644 index 00000000..e13eecf2 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.page @@ -0,0 +1,31 @@ +<%@ Title="Basic I18N Test" Application.Globalization.Culture="zh_CN" %> + +

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/features/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php new file mode 100644 index 00000000..cac0a04e --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/I18N/BasicI18N.php @@ -0,0 +1,45 @@ + + * @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 setup() + { + $page = Prado::getApplication()->getTestPage(__FILE__); + $this->open($page); + } + + function testI18N() + { + $this->verifyTitle("Basic I18N Test", ""); + $this->verifyTextPresent("Hello", ""); + $this->verifyTextPresent("US$10,000.00", ""); + $this->verifyTextPresent("2006年1月15日 上午12时00分00秒", ""); + $this->verifyTextPresent("None", ""); + $this->verifyTextPresent("One thing.", ""); + $this->verifyTextPresent("Many things.", ""); + } +} +*/ +?> \ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/I18N/Home.page b/tests/FunctionalTests/features/protected/pages/I18N/Home.page new file mode 100644 index 00000000..9a49e3a2 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/I18N/Home.page @@ -0,0 +1,3 @@ + +

Prado Functional Tests

+
\ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page b/tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page new file mode 100644 index 00000000..1b931cc2 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/I18N/Home.zh_CN.page @@ -0,0 +1,3 @@ + +

Prado Functional Tests (Chinese)

+
\ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/I18N/config.xml b/tests/FunctionalTests/features/protected/pages/I18N/config.xml new file mode 100644 index 00000000..25e26ac5 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/I18N/config.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3