summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorwei <>2006-09-16 01:55:08 +0000
committerwei <>2006-09-16 01:55:08 +0000
commitb2e7a7e14094bddc8f5060d97f259058c0555323 (patch)
treef564954ba4e76fa33043b8d616d02847644da19b /tests/FunctionalTests
parent18a642dd7389e215cdebd37b23e551ce17c1d977 (diff)
Fixed #360
Diffstat (limited to 'tests/FunctionalTests')
-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