summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket290.page21
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket290.php16
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket290.page b/tests/FunctionalTests/tickets/protected/pages/Ticket290.page
new file mode 100644
index 00000000..a785d5db
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket290.page
@@ -0,0 +1,21 @@
+<com:TContent ID="Content">
+ <com:TPanel ID="panel1" DefaultButton="button2"
+ Style="border:1px solid #ccc; padding:2em">
+ <com:TTextBox ID="textbox1" />
+
+ <com:TCustomValidator
+ ControlToValidate="textbox1"
+ OnServerValidate="customValidate"
+ ValidationGroup="group1"
+ ErrorMessage="required" />
+
+ <com:TButton ID="button1" Text="Button 1"
+ ValidationGroup="group1" OnClick="button_clicked" />
+ <com:TButton ID="button2" Text="Button 2 (default)"
+ ValidationGroup="group1" OnClick="button_clicked" />
+
+ <com:TLabel ID="label1" Text="Label 1" />
+ <com:TLabel ID="label2" Text="Label 2" />
+
+ </com:TPanel>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket290.php b/tests/FunctionalTests/tickets/protected/pages/Ticket290.php
new file mode 100644
index 00000000..c5e9e357
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket290.php
@@ -0,0 +1,16 @@
+<?php
+
+class Ticket290 extends TPage
+{
+ function customValidate($sender, $param)
+ {
+ $this->label1->Text = "Doing Validation";
+ }
+
+ function button_clicked($sender, $param)
+ {
+ $this->label2->Text = $sender->Text . " Clicked!";
+ }
+}
+
+?> \ No newline at end of file