summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php70
1 files changed, 35 insertions, 35 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php
index 0c9b16d5..1b1d0cbc 100644
--- a/tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/VisibleUpdate.php
@@ -1,36 +1,36 @@
-<?php
-/*
- * Created on 13/05/2006
- */
-
-class VisibleUpdate extends TPage
-{
- function click1($sender)
- {
- $this->label1->setText($this->getButtonState($sender));
-
- //$this->button1->setEnabled(false);
- $this->button1->setVisible(false);
- // $this->button2->setEnabled(true);
- $this->button2->setVisible(true);
- }
-
- function click2($sender)
- {
- $this->label1->setText($this->getButtonState($sender));
-
- // $this->button1->setEnabled(true);
- $this->button1->setVisible(true);
- /// $this->button2->setEnabled(false);
- $this->button2->setVisible(false);
- }
-
- protected function getButtonState($button)
- {
- return "Before you clicked on ".$button->Text.
- ", Button 1 was ".($this->button1->Enabled ? 'enabled' : 'disabled').
- " and Button 2 was ".($this->button2->Enabled ? 'enabled' : 'disabled');
- }
-}
-
+<?php
+/*
+ * Created on 13/05/2006
+ */
+
+class VisibleUpdate extends TPage
+{
+ function click1($sender)
+ {
+ $this->label1->setText($this->getButtonState($sender));
+
+ //$this->button1->setEnabled(false);
+ $this->button1->setVisible(false);
+ // $this->button2->setEnabled(true);
+ $this->button2->setVisible(true);
+ }
+
+ function click2($sender)
+ {
+ $this->label1->setText($this->getButtonState($sender));
+
+ // $this->button1->setEnabled(true);
+ $this->button1->setVisible(true);
+ /// $this->button2->setEnabled(false);
+ $this->button2->setVisible(false);
+ }
+
+ protected function getButtonState($button)
+ {
+ return "Before you clicked on ".$button->Text.
+ ", Button 1 was ".($this->button1->Enabled ? 'enabled' : 'disabled').
+ " and Button 2 was ".($this->button2->Enabled ? 'enabled' : 'disabled');
+ }
+}
+
?> \ No newline at end of file