summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket220TestCase.php')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket220TestCase.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
new file mode 100644
index 00000000..0753f732
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php
@@ -0,0 +1,18 @@
+<?php
+
+class Ticket220TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base="ctl0_Content_";
+ $this->open('tickets/index.php?page=Ticket220');
+ $this->assertTextPresent('ClientScript Test');
+ $this->assertText("{$base}label1", "Label 1");
+
+ $this->click("button1");
+ $this->assertText("{$base}label1", 'Label 1: ["ok", "ok 3?", "ok 2!"]');
+ $this->assertAlertNotPresent();
+ }
+}
+
+?> \ No newline at end of file