From 333eedb6eea18fdfb7bc0890cce1c30e6d44d363 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Fri, 6 Jan 2006 22:21:07 +0000
Subject:
---
tests/FunctionalTests/protected/application.xml | 18 ++++++------------
.../protected/pages/I18N/BasicI18N.page | 3 ++-
.../protected/pages/I18N/BasicI18N.php | 13 ++++++++++++-
tests/FunctionalTests/protected/runtime/config.cache | Bin 1543 -> 2357 bytes
4 files changed, 20 insertions(+), 14 deletions(-)
(limited to 'tests/FunctionalTests/protected')
diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml
index c4ea0be2..fe17e3c0 100644
--- a/tests/FunctionalTests/protected/application.xml
+++ b/tests/FunctionalTests/protected/application.xml
@@ -7,18 +7,12 @@
-
-
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
index 4e4a6d72..e09c2161 100644
--- a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
+++ b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page
@@ -1,3 +1,4 @@
+<%@ Application.Globalization.Culture="zh_CN" %>
@@ -35,7 +36,7 @@
-
+
diff --git a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
index 50d493d8..6920f439 100644
--- a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
+++ b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.php
@@ -24,11 +24,22 @@ class BasicI18N extends TPage
*/
class BasicI18NTestCase extends SeleniumTestCase
{
- function testI18N()
+ 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/protected/runtime/config.cache b/tests/FunctionalTests/protected/runtime/config.cache
index 33317f88..890ff3da 100644
Binary files a/tests/FunctionalTests/protected/runtime/config.cache and b/tests/FunctionalTests/protected/runtime/config.cache differ
--
cgit v1.2.3