summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorwei <>2006-02-19 22:25:23 +0000
committerwei <>2006-02-19 22:25:23 +0000
commit54572d1e4a5914e44bcd35fa9406ea72a8f2066f (patch)
tree3a8fc184f27cf06a3c1a768160579c6f26b3d599 /tests/FunctionalTests
parentad8fced1af4eb8e6d57f8610273490aec0ac8cba (diff)
Update TRatingList and date picker.
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/protected/pages/UI/DatePicker.page103
-rw-r--r--tests/FunctionalTests/protected/pages/UI/RatingList.page14
2 files changed, 68 insertions, 49 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/DatePicker.page b/tests/FunctionalTests/protected/pages/UI/DatePicker.page
index 09272d15..4347f748 100644
--- a/tests/FunctionalTests/protected/pages/UI/DatePicker.page
+++ b/tests/FunctionalTests/protected/pages/UI/DatePicker.page
@@ -1,48 +1,59 @@
<com:TContent ID="Content">
- <com:TDatePicker Mode="Button"/>
- <br />
- <select style="width: 200px; height: 50px"><option value="1">One</option></select>
-as<br/>
-dv<br/>
-as<br/>
-d<br/>
-<com:TDatePicker ID="Picker1" InputMode="DropDownList"/>
-<com:TButton Text="Update" />
-<%= $this->Page->Picker1->Text %>
-as<br/>
-d<br/>
-asd<br/>
-a<br/>
- <com:TDatePicker Mode="ImageButton" Culture="zh_CN" DateFormat="日期:yyyy年M月d日"/>
-sd<br/>
-dv<br/>
-as<br/>
-d<br/>
-as<br/>
-d<br/>
-asd<br/>
-a<br/>
-sd<br/>
-dv<br/>
-as<br/>
-d<br/>
-as<br/>
-d<br/>
-asd<br/>
-a<br/>
-sd<br/><com:TDatePicker />
-d<br/>
-as<br/>
-d<br/>
-asd<br/>
-a<br/>
-sd<br/>
-dv<br/>
-as<br/>
-d<br/>
-as<br/>
-d<br/>
-asd<br/>
-a<br/>
-sd<br/>
+
+<h1>TDatePicker Samples</h1>
+
+<table class="sampletable">
+
+<tr>
+ <td class="samplenote">Default TDatePicker</td>
+ <td class="sampleaction">
+ <com:TDatePicker />
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">Button Mode</td>
+ <td class="sampleaction">
+ <com:TDatePicker Mode="Button" />
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">InputMode="DropDownList", custom DateFormat</td>
+ <td class="sampleaction">
+ <com:TDatePicker DateFormat="yyyy/MMMM" InputMode="DropDownList"/>
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">InputMode="DropDownList", custom DateFormat, Culture</td>
+ <td class="sampleaction">
+ <com:TDatePicker DateFormat="MM/yyyy" Culture="fr" InputMode="DropDownList"/>
+ </td>
+</tr>
+
+
+<tr>
+ <td class="samplenote">Custom DateFormat, culture, ImageButton mode</td>
+ <td class="sampleaction">
+ <com:TDatePicker Mode="ImageButton" Culture="zh_CN" DateFormat="日期:yyyy年M月d日"/>
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">Custom DateFormat, DropDownList, pre-selected date set in as Text</td>
+ <td class="sampleaction">
+ <com:TDatePicker DateFormat="yyyy/MMMM/dd" Text="2005/05/15" InputMode="DropDownList"/>
+ </td>
+</tr>
+
+<tr>
+ <td class="samplenote">DropDownList, pre-selected date as integer</td>
+ <td class="sampleaction">
+ <com:TDatePicker InputMode="DropDownList" Date=<%= @strtotime("-1 month") %>/>
+ </td>
+</tr>
+
+</table>
+
</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/UI/RatingList.page b/tests/FunctionalTests/protected/pages/UI/RatingList.page
index 1af833dc..909180c7 100644
--- a/tests/FunctionalTests/protected/pages/UI/RatingList.page
+++ b/tests/FunctionalTests/protected/pages/UI/RatingList.page
@@ -2,7 +2,7 @@
<h1>TRatingList Examples</h1>
<h2>Default TRatingList</h2>
- <com:TRatingList>
+ <com:TRatingList RepeatDirection="Vertical" Style="caption-side: right;">
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
<com:TListItem Text="Good" />
@@ -20,7 +20,7 @@
</com:TRatingList>
<h2>TRatingList </h2>
- <com:TRatingList SelectedValue="Good">
+ <com:TRatingList RatingStyle="blocks" SelectedValue="Good">
<com:TListItem Text="Poor" />
<com:TListItem Text="Fair" />
<com:TListItem Text="Average" />
@@ -29,5 +29,13 @@
<com:TListItem Text="Super" />
</com:TRatingList>
-
+<h2>TRatingList </h2>
+ <com:TRatingList ID="Rating1" AllowInput="false" Caption="Rating:" Rating="4.6">
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" />
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Execellent" />
+ <com:TListItem Text="Super" />
+ </com:TRatingList>
</com:TContent> \ No newline at end of file