summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages
diff options
context:
space:
mode:
authorwei <>2006-01-06 22:21:07 +0000
committerwei <>2006-01-06 22:21:07 +0000
commit333eedb6eea18fdfb7bc0890cce1c30e6d44d363 (patch)
tree5b34d4181cd55e0219003d67d22a8438ac21b0d2 /tests/FunctionalTests/protected/pages
parent16660934cc48f357b1322bce7869158db2f7cb58 (diff)
Diffstat (limited to 'tests/FunctionalTests/protected/pages')
-rw-r--r--tests/FunctionalTests/protected/pages/I18N/BasicI18N.page3
-rw-r--r--tests/FunctionalTests/protected/pages/I18N/BasicI18N.php13
2 files changed, 14 insertions, 2 deletions
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" %>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -35,7 +36,7 @@
<div>
<com:TNumberFormat Value="10000" Type="currency"/>
</div>
-<div><com:TDateFormat /></div>
+<div><com:TDateFormat Value="2006-01-15"/></div>
<div>
<com:TChoiceFormat Value="0">
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