diff options
author | wei <> | 2006-08-29 12:53:23 +0000 |
---|---|---|
committer | wei <> | 2006-08-29 12:53:23 +0000 |
commit | 2db708960f4435e2b98518f8fa84cc036ac9f2eb (patch) | |
tree | 6dc4ae8a624bf2afeaadfbed5be81cdd8c1b0ffe /tests/FunctionalTests/active-controls | |
parent | f0a6fad58f8eae14554443081ffb166aaf71762a (diff) |
Update active controls.
Diffstat (limited to 'tests/FunctionalTests/active-controls')
3 files changed, 69 insertions, 6 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page new file mode 100644 index 00000000..54e38c2c --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page @@ -0,0 +1,53 @@ +<com:TForm ID="form1">
+
+<style>
+ .textbox, .editor
+ {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 1.2em;
+ display: block;
+ width: 20em;
+ }
+
+ .textbox
+ {
+ padding: 2px 0px 4px 2px;
+ border:1px solid #eee;
+ }
+
+
+ .editor
+ {
+ background-color: #ffc;
+ }
+ .loader
+ {
+ position:absolute;
+ right:0px;
+ top:0px;
+ color:white;
+ background-color:#900;
+ padding: 0.5em 1em;
+ }
+</style>
+
+ <h1>TInPlaceTextBox Functional Test</h1>
+
+ <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>
+ <com:TRequiredFieldValidator
+ ControlToValidate="label1"
+ ErrorMessage="*" />
+
+ <com:TActiveLabel ID="status" Text="Status:" />
+
+ <com:TJavascriptLogger />
+
+</com:TForm>
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php new file mode 100644 index 00000000..3fa5c7e2 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.php @@ -0,0 +1,16 @@ +<?php
+
+class TInPlaceTextBoxTest extends TPage
+{
+ function load_text($sender, $param)
+ {
+ $sender->Text = "muahaha";
+ }
+
+ function label1_changed($sender, $param)
+ {
+ $this->status->Text = "Status: ". $sender->Text;
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php index 24f8099d..96f56b30 100644 --- a/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php +++ b/tests/FunctionalTests/active-controls/tests/ActiveListBoxTestCase.php @@ -29,12 +29,6 @@ class ActiveListBoxTestCase extends SeleniumTestCase $this->pause(800);
$this->assertEmptySelection("list1");
- $this->click('button7');
- $this->pause(800);
- $this->click("button1");
- $this->pause(800);
- $this->assertSelectedIndexes('list1', '3');
-
$this->click('button6');
$this->pause(800);
$this->click("button1");
|