From a7f6c6640ac9295eec3ae2edbb2250179eb85e33 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 6 May 2006 02:26:20 +0000 Subject: Adding TActiveButton and TActiveTextBox --- .../features/protected/pages/ActiveControls/ActiveControl.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php') 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); -- cgit v1.2.3