From 92a33ef250a55ec54b6c26c5611af77d999fb337 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 29 Jan 2006 04:54:31 +0000 Subject: Add I18N FT test. --- .gitattributes | 1 + .../quickstart_tests/Advanced/I18N.php | 54 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/FunctionalTests/quickstart_tests/Advanced/I18N.php diff --git a/.gitattributes b/.gitattributes index e3929346..e85a32e3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -702,6 +702,7 @@ tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php -tex tests/FunctionalTests/protected/pages/ViewSource.page -text tests/FunctionalTests/protected/pages/ViewSource.php -text tests/FunctionalTests/protected/pages/config.xml -text +tests/FunctionalTests/quickstart_tests/Advanced/I18N.php -text tests/FunctionalTests/quickstart_tests/Controls/ButtonTestCase.php -text tests/FunctionalTests/quickstart_tests/Controls/CheckBoxListTestCase.php -text tests/FunctionalTests/quickstart_tests/Controls/CheckBoxTestCase.php -text diff --git a/tests/FunctionalTests/quickstart_tests/Advanced/I18N.php b/tests/FunctionalTests/quickstart_tests/Advanced/I18N.php new file mode 100644 index 00000000..a0c8953f --- /dev/null +++ b/tests/FunctionalTests/quickstart_tests/Advanced/I18N.php @@ -0,0 +1,54 @@ +open("../../demos/quickstart/index.php?page=Advanced.Samples.I18N.Home", ""); + $this->verifyTitle("Internationlization in PRADO", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("$12.40", ""); + $this->verifyTextPresent("€100.00", ""); + $this->verifyTextPresent("December 6, 2004", ""); + $this->clickAndWait("link=中文简体", ""); + $this->verifyTitle("PRADO 国际化", ""); + $this->verifyTextPresent("2004 十二月", ""); + $this->verifyTextPresent("US$ 12.40", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00 ", ""); + $this->clickAndWait("link=中文繁體", ""); + $this->verifyTitle("PRADO 國際化", ""); + $this->verifyTextPresent("2004年12月6日", ""); + $this->verifyTextPresent("US$12.40", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00", ""); + $this->clickAndWait("link=Deutsch", ""); + $this->verifyTitle("Internationalisierung in PRADO", ""); + $this->verifyTextPresent("6. Dezember 2004 ", ""); + $this->verifyTextPresent("$ 12,40", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00", ""); + $this->clickAndWait("link=Español", ""); + $this->verifyTitle("Internationlization en PRADO", ""); + $this->verifyTextPresent("6 de diciembre de 2004", ""); + $this->verifyTextPresent("US$12.40", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00", ""); + $this->clickAndWait("link=Français", ""); + $this->verifyTitle("Internationalisation dans PRADO", ""); + $this->verifyTextPresent("6 décembre 2004", ""); + $this->verifyTextPresent("12,40 $", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00", ""); + $this->clickAndWait("link=Polska", ""); + $this->verifyTitle("Internacjonalizacja w PRADO", ""); + $this->verifyTextPresent("6 grudnia 2004", ""); + $this->verifyTextPresent("US$ 12,40", ""); + $this->verifyTextPresent("46.412,42 €", ""); + $this->verifyTextPresent("€100.00", ""); + + } +} + +?> \ No newline at end of file -- cgit v1.2.3