diff options
Diffstat (limited to 'tests/FunctionalTests/protected/pages/UI')
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php new file mode 100644 index 00000000..7cebc483 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php @@ -0,0 +1,24 @@ +<?php
+
+/**
+ * LabeledTextBox
+ *
+ * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @version $Revision: $ $Date: $
+ * @package System.Web.UI.WebControls
+ * @since 3.0
+ */
+class LabeledTextBox extends TTemplateControl
+{
+ public function getTextBox()
+ {
+ return $this->textbox;
+ }
+
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl new file mode 100644 index 00000000..6eda63a5 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl @@ -0,0 +1,2 @@ +<com:TLabel ID="label" AssociatedControlID="textbox" Text="label:"/>
+<com:TTextBox ID="textbox" />
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page b/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page new file mode 100644 index 00000000..f1e46544 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page @@ -0,0 +1,6 @@ +<com:TContent ID="Content">
+<com:TForm>
+ <com:LabeledTextBox Label.Text="username:"/>
+ <com:LabeledTextBox Label.Text="password:"/>
+</com:TForm>
+</com:TContent>
\ No newline at end of file |