diff options
author | wei <> | 2006-05-06 02:26:20 +0000 |
---|---|---|
committer | wei <> | 2006-05-06 02:26:20 +0000 |
commit | a7f6c6640ac9295eec3ae2edbb2250179eb85e33 (patch) | |
tree | 8a3879c747dfc3bcd5d65f334341ea7c81ced268 /tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php | |
parent | 46155621cbf97191fca495cbd09a2eedd82afa82 (diff) |
Adding TActiveButton and TActiveTextBox
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php index ace6291b..47bab3cc 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php @@ -9,7 +9,7 @@ class ActiveControl extends TPage public function slowResponse($sender, $param)
{
- sleep(3);
+ sleep(1);
$this->label1->setText("The time is ".time()." from ".$sender->ID);
$this->label1->setForeColor($this->getColor());
$this->label1->renderControl($param->getOutput());
@@ -20,9 +20,13 @@ class ActiveControl extends TPage $this->getCallbackClient()->shake($this->panel1);
}
- public function fastResponse($sender, $param)
+ public function onButtonClicked($sender, $param)
{
$this->label2->setText("Muahaha !!! the time is ".time()." from ".$sender->ID);
+ }
+
+ public function fastResponse($sender, $param)
+ {
$style['color'] = $this->getColor();
$this->getCallbackClient()->setStyle($this->label2, $style);
$this->getCallbackClient()->shake($this->label2);
|