summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages
diff options
context:
space:
mode:
authorwei <>2006-08-30 23:28:51 +0000
committerwei <>2006-08-30 23:28:51 +0000
commit2fda7f49f3792a0718838742b76a4b533c169af9 (patch)
tree46a5a3eb53a0d64fc25894bfd219a82cecffa807 /tests/FunctionalTests/active-controls/protected/pages
parent1f560ccd8a9e21871dbedd548fc97f231131c771 (diff)
Updated TInPlaceTextBox
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page27
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php5
2 files changed, 24 insertions, 8 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
index 54e38c2c..b6b2d040 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
@@ -1,7 +1,7 @@
<com:TForm ID="form1">
<style>
- .textbox, .editor
+ .textbox
{
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
@@ -16,7 +16,7 @@
}
- .editor
+ input.textbox
{
background-color: #ffc;
}
@@ -29,6 +29,11 @@
background-color:#900;
padding: 0.5em 1em;
}
+ input.required
+ {
+ border: 1px solid red;
+ background-color: pink;
+ }
</style>
<h1>TInPlaceTextBox Functional Test</h1>
@@ -36,16 +41,22 @@
<com:TInPlaceTextBox id="label1"
OnTextChanged="label1_changed"
EditTriggerControlID="link1"
- TextBoxCssClass="editor"
- ActiveControl.ClientSide.OnLoading="Element.show('loader')"
- ActiveControl.ClientSide.OnComplete="Element.hide('loader')"
- CssClass="textbox" Text="Label 1" />
-<span id="loader" style="display:none;" class="loader">Loading...</span>
- <a href="#" id="link1">Edit</a>
+ CssClass="textbox"
+ Text="Label 1">
+ <prop:ActiveControl.ClientSide
+ OnLoading="Element.show('loader')"
+ OnComplete="Element.hide('loader')" />
+ </com:TInPlaceTextBox>
+
<com:TRequiredFieldValidator
ControlToValidate="label1"
+ ControlCssClass="required"
ErrorMessage="*" />
+ <span id="loader" style="display:none;" class="loader">Loading...</span>
+
+ <a href="#" id="link1">Edit</a>
+
<com:TActiveLabel ID="status" Text="Status:" />
<com:TJavascriptLogger />
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php
index 3fa5c7e2..5607dea8 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php
@@ -11,6 +11,11 @@ class TInPlaceTextBoxTest extends TPage
{
$this->status->Text = "Status: ". $sender->Text;
}
+
+ function button_clicked($sender, $param)
+ {
+ $this->label1->Text = "hahahaha";
+ }
}
?> \ No newline at end of file