summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2006-02-15 23:15:18 +0000
committerwei <>2006-02-15 23:15:18 +0000
commitfa829f695402c827f74e78455c70faff6ae62bf1 (patch)
treef6bedba5a545193e16d8944c7b2929c6981d6420
parentab781af4385b77943975394eba606cd38f1e4fb1 (diff)
Example for TRatingList
-rw-r--r--framework/Web/UI/WebControls/TRatingList.php1
-rw-r--r--tests/FunctionalTests/protected/pages/UI/RatingList.page9
2 files changed, 9 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php
index ad9b0256..7897f36f 100644
--- a/framework/Web/UI/WebControls/TRatingList.php
+++ b/framework/Web/UI/WebControls/TRatingList.php
@@ -73,7 +73,6 @@ class TRatingList extends TRadioButtonList
$options['field'] = $this->getUniqueID();
$options['total'] = $this->getItems()->getCount();
$options['pos'] = $this->getSelectedIndex();
- var_dump($this->getSelectedIndex());
return $options;
}
diff --git a/tests/FunctionalTests/protected/pages/UI/RatingList.page b/tests/FunctionalTests/protected/pages/UI/RatingList.page
index f242656a..b598054e 100644
--- a/tests/FunctionalTests/protected/pages/UI/RatingList.page
+++ b/tests/FunctionalTests/protected/pages/UI/RatingList.page
@@ -9,5 +9,14 @@
<com:TListItem Text="Execellent" />
</com:TRatingList>
+<h2>TRatingList </h2>
+ <com:TRatingList>
+ <com:TListItem Text="Poor" />
+ <com:TListItem Text="Fair" />
+ <com:TListItem Text="Average" Selected="true"/>
+ <com:TListItem Text="Good" />
+ <com:TListItem Text="Execellent" />
+ <com:TListItem Text="Super" />
+ </com:TRatingList>
</com:TContent> \ No newline at end of file