summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket93.page16
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket93.php5
2 files changed, 14 insertions, 7 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket93.page b/tests/FunctionalTests/tickets/protected/pages/Ticket93.page
index 89aeb436..2217ab15 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket93.page
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket93.page
@@ -15,8 +15,9 @@
<com:TRectangleHotSpot
hotspotmode="PostBack"
- PostBackValue="test"
+ PostBackValue="test1"
CausesValidation="true"
+ ValidationGroup="Group1"
alternatetext="Button 2"
top="155"
left="175"
@@ -28,6 +29,7 @@
PostBackValue="test2"
CausesValidation="true"
alternatetext="Button 3"
+ ValidationGroup="Group2"
top="285"
left="175"
bottom="365"
@@ -40,14 +42,20 @@
ValidationGroup="Group1"
EnableClientScript="true"
ControlToValidate="TextBox"
- Text="required" />
+ Text="textbox 1 required" />
<com:TTextBox ID="TextBox2" />
<com:TRequiredFieldValidator
- ValidationGroup="Group1"
+ ValidationGroup="Group2"
+ EnableClientScript="false"
+ ControlToValidate="TextBox2"
+ Text="textbox 2 required" />
+
+<com:TRequiredFieldValidator
+ ValidationGroup=""
EnableClientScript="true"
ControlToValidate="TextBox2"
- Text="required" />
+ Text="No one is required" />
</div>
</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
index ea5745a8..dbdf2cab 100644
--- a/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket93.php
@@ -7,9 +7,8 @@ class Ticket93 extends TPage
{
public function buttonClicked($sender,$param)
{
- //echo $param->getPostBackValue();
- print_r($param);
- }
+ echo 'postback triggered with value '.$param->PostBackValue;
+ }
}
?>