summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages
diff options
context:
space:
mode:
authortof <>2008-04-11 08:23:36 +0000
committertof <>2008-04-11 08:23:36 +0000
commit4ab766dc6ca1d5e294d2b2f34d2198ce9583fbd2 (patch)
treed2b2918fa7b55cdfee8b2f9537ac48a27bce55fd /tests/FunctionalTests/tickets/protected/pages
parent247e58768c624174c649f9680a638fcbb8ecd0f0 (diff)
TestCase for #828
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket828.page80
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket828.page b/tests/FunctionalTests/tickets/protected/pages/Ticket828.page
new file mode 100644
index 00000000..528a28d1
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket828.page
@@ -0,0 +1,80 @@
+<com:TContent ID="Content">
+<style type="text/css">
+ /*<![CDATA[*/
+ .defect
+ {
+ color: #c00;
+ font-size: 1.15em;
+ }
+ body
+ {
+ font-family: Georgia, "Times New Roman", Times, serif;
+ }
+ .w3c
+ {
+ margin-top: 2em;
+ display: block;
+ }
+ .required
+ {
+ border: 1px solid red;
+ background-color: pink;
+ }
+ /*]]>*/
+ </style>
+<div>
+ <div class="lista">
+ <com:TCheckBoxList ID="list1" RepeatLayout="Raw">
+ <com:TListItem Value="1" Text="One" />
+ <com:TListItem Value="2" Text="Two" />
+ <com:TListItem Value="3" Text="Three" />
+ <com:TListItem Value="4" Text="Four" />
+ </com:TCheckBoxList>
+ <com:TListControlValidator
+ ID="validator1"
+ ControlToValidate="list1"
+ ErrorMessage="Must select at least 1 and no more than 3"
+ ControlCssClass="required"
+ MinSelection="1"
+ MaxSelection="3" />
+
+ </div>
+ <div>
+ <com:TListBox ID="list2" SelectionMode="Multiple" Rows="5" Style="width:10em;">
+ <com:TListItem Value="1" Text="One" />
+ <com:TListItem Value="2" Text="Two" />
+ <com:TListItem Value="3" Text="Three" />
+ <com:TListItem Value="4" Text="Four" />
+ <com:TListItem Value="5" Text="Five" />
+ </com:TListBox>
+ <com:TListControlValidator
+ ID="validator2"
+ ControlToValidate="list2"
+ ErrorMessage='Must select at least 2 and no more than 3 and value "two"'
+ MinSelection="2"
+ MaxSelection="3"
+ ControlCssClass="required"
+ RequiredSelections="2" />
+ </div>
+
+ <div class="lista">
+ <com:TRadioButtonList ID="list3" RepeatLayout="Raw">
+ <com:TListItem Value="1" Text="One" />
+ <com:TListItem Value="2" Text="Two" />
+ <com:TListItem Value="3" Text="Three" />
+ <com:TListItem Value="4" Text="Four" />
+ </com:TRadioButtonList>
+ <com:TListControlValidator
+ ID="validator3"
+ ControlToValidate="list3"
+ ErrorMessage="Must select at least 1"
+ ControlCssClass="required"
+ MinSelection="1"/>
+
+ </div>
+
+
+ <com:TButton ID="submit1" Text="Test" />
+</div>
+
+</com:TContent> \ No newline at end of file