From d9ad36825c803cb356ef690e1fbb6bc61c1b2e44 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Wed, 25 Jan 2006 11:06:06 +0000
Subject: TTemplateControl composition example and tests.
---
.gitattributes | 3 +++
.../protected/pages/UI/LabeledTextBox.php | 24 ++++++++++++++++++++++
.../protected/pages/UI/LabeledTextBox.tpl | 2 ++
.../protected/pages/UI/testLabeledTextBox.page | 6 ++++++
4 files changed, 35 insertions(+)
create mode 100644 tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php
create mode 100644 tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl
create mode 100644 tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page
diff --git a/.gitattributes b/.gitattributes
index e463bbfe..9a90f174 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -633,8 +633,11 @@ tests/FunctionalTests/protected/pages/I18N/BasicI18N.php -text
tests/FunctionalTests/protected/pages/Layout.php -text
tests/FunctionalTests/protected/pages/Layout.tpl -text
tests/FunctionalTests/protected/pages/UI/DatePicker.page -text
+tests/FunctionalTests/protected/pages/UI/LabeledTextBox.php -text
+tests/FunctionalTests/protected/pages/UI/LabeledTextBox.tpl -text
tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.page -text
tests/FunctionalTests/protected/pages/UI/TestTPanelDefaultButton.php -text
+tests/FunctionalTests/protected/pages/UI/testLabeledTextBox.page -text
tests/FunctionalTests/protected/pages/Validation/CheckBox.page -text
tests/FunctionalTests/protected/pages/Validation/CheckBox.php -text
tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page -text
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 @@
+
+ * @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 @@
+
+
\ 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 @@
+
+
+
+
+
+
\ No newline at end of file
--
cgit v1.2.3