summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
authorwei <>2007-05-08 02:22:27 +0000
committerwei <>2007-05-08 02:22:27 +0000
commit7f4d9089574a35b733ee36bf4880bb9eb4beab84 (patch)
tree3d140949838994731d047ffd28c816659727ed5a /tests/FunctionalTests/tickets/protected/pages
parent8cfeb336ca6696b454dc34820a9f0d06c3e36cad (diff)
Fixed Sqlmap using TAPCCache problem. Adding test code for #488.
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket488.page27
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket488.php13
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket488.page b/tests/FunctionalTests/tickets/protected/pages/Ticket488.page
new file mode 100644
index 00000000..4bb8df47
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket488.page
@@ -0,0 +1,27 @@
+<com:TContent ID="Content">
+
+<com:TTextBox ID="Password" />
+
+<com:TActiveCustomValidator
+ ID="LoginValidate"
+ ControlToValidate="Password"
+ Text="Login failed."
+ Display="Dynamic"
+ OnServerValidate="login"
+ ValidationGroup="UserAccountLogin"
+ ClientSide.ObserveChanges="false">
+ <prop:ClientSide.OnValidationError>
+ console.log('OnValidationError')
+ </prop:ClientSide.OnValidationError>
+ <prop:ClientSide.OnValidate>
+ console.log('OnValidate');
+ </prop:ClientSide.OnValidate>
+ <prop:ActiveControl.ClientSide
+ OnLoading="console.log('loading')"
+ OnComplete="console.log('completing')"
+ />
+</com:TActiveCustomValidator>
+
+<com:TActiveButton Text="Click" ValidationGroup="UserAccountLogin" />
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket488.php b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
new file mode 100644
index 00000000..e9610d1d
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket488.php
@@ -0,0 +1,13 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket488 extends TPage
+{
+ function login($sender,$param)
+ {
+ //$param->IsValid = $this->Password == 'Prado';
+ }
+}
+
+?> \ No newline at end of file