From 52ae5aef521fa7d800e09206342eb9ac17043cd8 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 13 Jan 2006 12:57:54 +0000 Subject: --- tests/FunctionalTests/protected/application.xml | 1 - tests/FunctionalTests/protected/pages/Home.page | 35 ++------------------- .../protected/pages/I18N/BasicI18N.page | 36 ++-------------------- .../pages/Validation/RequiredFieldValidator.page | 7 +++-- .../pages/Validation/RequiredFieldValidator.php | 5 +-- 5 files changed, 13 insertions(+), 71 deletions(-) (limited to 'tests') diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml index ca946653..53e73457 100644 --- a/tests/FunctionalTests/protected/application.xml +++ b/tests/FunctionalTests/protected/application.xml @@ -13,7 +13,6 @@ - \ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Home.page b/tests/FunctionalTests/protected/pages/Home.page index 606a17ac..9a49e3a2 100644 --- a/tests/FunctionalTests/protected/pages/Home.page +++ b/tests/FunctionalTests/protected/pages/Home.page @@ -1,34 +1,3 @@ - - - - - - Prado Functional Tests - - - - - +

Prado Functional Tests

- -
- - Validate XHTML 1.0 - -
- - \ No newline at end of file +
\ 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 e09c2161..f4ef35d2 100644 --- a/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page +++ b/tests/FunctionalTests/protected/pages/I18N/BasicI18N.page @@ -1,28 +1,5 @@ -<%@ Application.Globalization.Culture="zh_CN" %> - - - - - - Basic I18N Test - - - - +<%@ Title="Basic I18N Test" %> +

Basic I18N Test

Hello {name} @@ -51,11 +28,4 @@ [0] None |[1] One thing. |[2,Inf) Many things. - - - - \ No newline at end of file +
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page index 56ef07bd..e6b67c8d 100644 --- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page +++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page @@ -1,13 +1,16 @@ +<%@ Title="Basic TRequiredFieldValidator" %> +

Basic TRequiredFieldValidator Test1

-
\ No newline at end of file + +
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php index 995b3df0..ff24b93a 100644 --- a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php +++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php @@ -2,9 +2,10 @@ class RequiredFieldValidator extends TPage { - function onLoad($param) + protected function onLoad($param) { - Prado::log("Hello", TLogger::WARNING); + if(!$this->IsPostBack) + $this->dataBind(); } } -- cgit v1.2.3