diff options
author | xue <> | 2006-04-14 12:35:35 +0000 |
---|---|---|
committer | xue <> | 2006-04-14 12:35:35 +0000 |
commit | 15679cf90c58bc99b0f4fe283770282970bbece2 (patch) | |
tree | a82d9f3571996b9424749819ad03ab87c7973f4e /tests/FunctionalTests | |
parent | 93e7512bf538aef617a0bfd72eaeaddb75076528 (diff) |
Adjusted for testing #131
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket93.page | 16 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket93.php | 5 |
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;
+ }
}
?>
|