summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages
diff options
context:
space:
mode:
authorwei <>2007-01-25 05:49:22 +0000
committerwei <>2007-01-25 05:49:22 +0000
commit682f7ef6933f4ad485baedddf7a30367d003d7bf (patch)
treef0eb02ab8373f481b212b5406bfdb95e48b03b10 /tests/FunctionalTests/active-controls/protected/pages
parent9b4174135679398eaed518db99f3c72545aa3876 (diff)
Fixed #502
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page22
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php26
2 files changed, 48 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page
new file mode 100644
index 00000000..df1db27a
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.page
@@ -0,0 +1,22 @@
+<com:TForm>
+<h1>Display Style Test</h1>
+
+<div>
+Some test
+<com:TActiveButton ID="button1" Display="None" Text="Button 1" />
+buttons
+<com:TActiveButton ID="button2" Display="Hidden" Text="Button 2" />
+here.
+</div>
+
+<com:TActiveButton Text="Display Button 1" OnClick="display_button1" />
+<com:TActiveButton Text="Hide Button 1" OnClick="hide_button1" />
+
+<com:TActiveButton Text="Show Button 2" OnClick="show_button2" />
+<com:TActiveButton Text="Hide Button 2" OnClick="hide_button2" />
+
+<com:TActiveLabel ID="status" />
+
+<com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php
new file mode 100644
index 00000000..a49a8bfa
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/DisplayStyleTest.php
@@ -0,0 +1,26 @@
+<?php
+
+class DisplayStyleTest extends TPage
+{
+ function display_button1()
+ {
+ $this->button1->Display="Dynamic";
+ }
+
+ function hide_button1()
+ {
+ $this->button1->Display="None";
+ }
+
+ function show_button2()
+ {
+ $this->button2->Display="Fixed";
+ }
+
+ function hide_button2()
+ {
+ $this->button2->Display="Hidden";
+ }
+}
+
+?> \ No newline at end of file