diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket488.page | 27 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket488.php | 13 |
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 |