diff options
author | wei <> | 2006-09-16 01:55:08 +0000 |
---|---|---|
committer | wei <> | 2006-09-16 01:55:08 +0000 |
commit | b2e7a7e14094bddc8f5060d97f259058c0555323 (patch) | |
tree | f564954ba4e76fa33043b8d616d02847644da19b /tests/FunctionalTests | |
parent | 18a642dd7389e215cdebd37b23e551ce17c1d977 (diff) |
Fixed #360
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.page | 17 | ||||
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActivePanelVisibleTest.php | 18 |
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 |