diff options
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php index 47bab3cc..b2dd2233 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.php @@ -9,11 +9,13 @@ class ActiveControl extends TPage public function slowResponse($sender, $param)
{
- sleep(1);
+ //sleep(1);
$this->label1->setText("The time is ".time()." from ".$sender->ID);
$this->label1->setForeColor($this->getColor());
$this->label1->renderControl($param->getOutput());
+ $this->button2->setEnabled(true);
+
$this->panel2->setVisible(true);
$this->panel1->setBackColor($this->getColor());
$this->panel1->renderControl($param->getOutput());
@@ -27,6 +29,7 @@ class ActiveControl extends TPage public function fastResponse($sender, $param)
{
+ $this->button2->setEnabled(false);
$style['color'] = $this->getColor();
$this->getCallbackClient()->setStyle($this->label2, $style);
$this->getCallbackClient()->shake($this->label2);
|