summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authortof <>2007-06-28 08:41:57 +0000
committertof <>2007-06-28 08:41:57 +0000
commit8a38b5643655c82a843c4e429cbc3fafdff198ce (patch)
treee26c044c2fb5910730f325a68f26dc5abba6eaa6 /tests/FunctionalTests/tickets/tests
parent353b3d04ce7a03c7c87f7343e766b3f45e96003c (diff)
Add functional test case for Ticket659
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket659TestCase.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php
new file mode 100644
index 00000000..70c52f35
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket659TestCase.php
@@ -0,0 +1,23 @@
+<?php
+
+class Ticket659TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ // Normal component (working)
+ $this->open('tickets/index.php?page=ToggleTest');
+ $this->assertText("${base}lbl", "Down");
+ $this->click("${base}btn", "");
+ $this->pause(800);
+ $this->assertText("${base}lbl", "Up");
+ // Extended component (not working)
+ $this->open('tickets/index.php?page=Ticket659');
+ $this->assertText("${base}lbl", "Down");
+ $this->click("${base}btn", "");
+ $this->pause(800);
+ $this->assertText("${base}lbl", "Up");
+ }
+}
+
+?> \ No newline at end of file