summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.page17
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php18
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.page
new file mode 100644
index 00000000..0795e46b
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.page
@@ -0,0 +1,17 @@
+<com:TForm>
+
+<h1>ActivePanel Visible Test</h1>
+
+<com:TActiveRadioButton ID="rbA" Checked="true"
+ GroupName="group1" Text="Show A" OnCallback="showA"/>
+
+<com:TActiveRadioButton ID="tbB"
+ GroupName="group1" Text="Show B" OnCallback="showB"/>
+
+<com:TActivePanel ID="pnlA">foo</com:TActivePanel>
+
+<com:TActivePanel ID="pnlB">bar</com:TActivePanel>
+
+<com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php
new file mode 100644
index 00000000..e922319e
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php
@@ -0,0 +1,18 @@
+<?php
+
+class ActivePanelVisibleTest extends TPage
+{
+ public function showA()
+ {
+ $this->pnlB->Visible = false;
+ $this->pnlA->Visible = true;
+ }
+
+ public function showB()
+ {
+ $this->pnlB->Visible = true;
+ $this->pnlA->Visible = false;
+ }
+}
+
+?> \ No newline at end of file