summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
authormikl <>2008-04-13 19:02:20 +0000
committermikl <>2008-04-13 19:02:20 +0000
commitcb09f6ad38d3578996c48df08bdd0b187ed32cea (patch)
treef68f35e7d4058fb892f5d1e65aa9fedf98ea25aa /tests/FunctionalTests/tickets
parent4ab766dc6ca1d5e294d2b2f34d2198ce9583fbd2 (diff)
Added testcase for #622
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket622.page17
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket622.php10
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket622TestCase.php18
3 files changed, 45 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket622.page b/tests/FunctionalTests/tickets/protected/pages/Ticket622.page
new file mode 100644
index 00000000..e6598cd2
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket622.page
@@ -0,0 +1,17 @@
+<com:TContent ID="Content">
+
+<h2>This test only passes only with "<i>Highlight elements</i>" deactivated!</h2>
+
+<com:TActiveLinkButton ID="ALB" Text="Test" Display="None" /><br />
+
+<!-- spans added to access embedded id-less span via CSS selector from selenium -->
+<span id="acb">
+<com:TActiveCheckBox ID="ACB" Text="Test" Display="None" /><br />
+</span>
+
+<span id="arb">
+<com:TActiveRadioButton ID="ARB" Text="Test" Display="None" /><br />
+</span>
+
+<com:TActiveButton OnClick="changeA" Text="Click!"/>
+</com:TContent>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket622.php b/tests/FunctionalTests/tickets/protected/pages/Ticket622.php
new file mode 100644
index 00000000..003b32de
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket622.php
@@ -0,0 +1,10 @@
+<?php
+Prado::Using ('System.Web.UI.ActiveControls.*');
+class Ticket622 extends TPage {
+ public function changeA($sender,$param) {
+ $this->ALB->setDisplay('Dynamic');
+ $this->ACB->setDisplay('Dynamic');
+ $this->ARB->setDisplay('Dynamic');
+ }
+}
+?>
diff --git a/tests/FunctionalTests/tickets/tests/Ticket622TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket622TestCase.php
new file mode 100644
index 00000000..61b7d314
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket622TestCase.php
@@ -0,0 +1,18 @@
+<?php
+
+class Ticket622TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket622');
+ $this->assertTitle("Verifying Ticket 622");
+
+ $this->click($base.'ctl0');
+ $this->pause(800);
+ $this->assertAttribute($base.'ALB@style','null');
+ $this->assertAttribute('css=span#acb span@style','null');
+ $this->assertAttribute('css=span#arb span@style','null');
+ }
+}
+?>