From 4009bc98e96c38d22b3c199f3bfefe4c30783d00 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 2 Jul 2006 04:51:24 +0000 Subject: Add Ticket tests --- .../tickets/protected/pages/Home.page | 3 ++ .../tickets/protected/pages/Home.php | 34 ++++++++++++++++++++++ .../tickets/protected/pages/Ticket205.page | 4 +++ .../tickets/protected/pages/Ticket207.page | 20 +++++++++++++ 4 files changed, 61 insertions(+) create mode 100755 tests/FunctionalTests/tickets/protected/pages/Home.page create mode 100755 tests/FunctionalTests/tickets/protected/pages/Home.php create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket205.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket207.page (limited to 'tests/FunctionalTests/tickets/protected/pages') diff --git a/tests/FunctionalTests/tickets/protected/pages/Home.page b/tests/FunctionalTests/tickets/protected/pages/Home.page new file mode 100755 index 00000000..d4ac162c --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Home.page @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Home.php b/tests/FunctionalTests/tickets/protected/pages/Home.php new file mode 100755 index 00000000..37804419 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Home.php @@ -0,0 +1,34 @@ +getPageList(dirname(__FILE__),''); + $this->List->DataSource=$list; + $this->List->dataBind(); + } + + protected function getPageList($directory,$basePath) + { + $list=array(); + $folder=@opendir($directory); + while($entry=@readdir($folder)) + { + if($entry[0]==='.') + continue; + else if(is_file($directory.'/'.$entry)) + { + if(($page=basename($entry,'.page'))!==$entry && strpos($page,'.')===false) + $list['?page='.$basePath.$page]=$basePath.$page; + } + else + $list=array_merge($list,$this->getPageList($directory.'/'.$entry,$basePath.$entry.'.')); + } + closedir($folder); + return $list; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket205.page b/tests/FunctionalTests/tickets/protected/pages/Ticket205.page new file mode 100644 index 00000000..1f271c14 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket205.page @@ -0,0 +1,4 @@ + +

TCustomValidator not enabling ControlCssClass or prop:ClientSide.OnError after postback.

+ +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket207.page b/tests/FunctionalTests/tickets/protected/pages/Ticket207.page new file mode 100644 index 00000000..8826c208 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket207.page @@ -0,0 +1,20 @@ + +

Validators ClientSide.OnError triggered twice

+
+ +
+
+ +
+ +

Conditions

+
+	(TextBox? B is just there to prevent server submission)
+	To verify try exactly this:
+
+	1. Enter nothing and click on submit : 1 error event will be triggered
+	2. Enter something into TextBox? T and click on submit : no error event (ok)
+	3. Delete your text from TextBox? T again and click on submit : error event will be triggered twice
+
+
\ No newline at end of file -- cgit v1.2.3