summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php
diff options
context:
space:
mode:
authorwei <>2006-08-12 05:34:54 +0000
committerwei <>2006-08-12 05:34:54 +0000
commit54d4919e3f1b00b644fa3c107acdf20159a1b154 (patch)
tree1c3e9cc679d4e08cc4beb06eee6f79838a34cb31 /tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php
parent6dd529fdc25404da07cf9256d92f2a94985c65fc (diff)
Update active controls.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php
index 0e09a012..a5358d98 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.php
@@ -4,27 +4,38 @@ class ReplaceContentTest extends TPage
{
function appendContent($sender, $param)
{
- $this->CallbackClient->appendContent($this->subpanel, $this->content->Text);
+ $this->CallbackClient->appendContent($this->subpanel, $this->replacementContent());
}
function prependContent($sender, $param)
{
- $this->CallbackClient->prependContent($this->subpanel, $this->content->Text);
+ $this->CallbackClient->prependContent($this->subpanel, $this->replacementContent());
}
function insertContentBefore($sender, $param)
{
- $this->CallbackClient->insertContentBefore($this->subpanel, $this->content->Text);
+ $this->CallbackClient->insertContentBefore($this->subpanel, $this->replacementContent());
}
function insertContentAfter($sender, $param)
{
- $this->CallbackClient->insertContentAfter($this->subpanel, $this->content->Text);
+ $this->CallbackClient->insertContentAfter($this->subpanel, $this->replacementContent());
}
function replaceContent($sender, $param)
{
- $this->CallbackClient->replaceContent($this->subpanel, $this->content->Text);
+ $this->CallbackClient->replaceContent($this->subpanel, $this->replacementContent());
+ }
+
+ function replacementContent()
+ {
+ if($this->check1->Checked)
+ {
+ $this->newPanel->Visible=true;
+ return $this->newPanel;
+ }
+ else
+ return $this->content->Text;
}
}