summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket578TestCase.php')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket578TestCase.php56
1 files changed, 28 insertions, 28 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
index f95af91b..5f3bd4d6 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php
@@ -1,29 +1,29 @@
-<?php
-
-class Ticket578TestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = 'ctl0_Content_';
- $this->open('tickets/index.php?page=Ticket578');
- $this->verifyTitle("Verifying Ticket 578", "");
-
- $this->assertText("{$base}label1", "Label 1");
- $this->click("{$base}button1", "");
- $this->pause(800);
- $this->assertText("{$base}label1", "Button 1 was clicked : ");
-
- $this->store($this->setTinymceHtml("{$base}text1", "helloworld"),"t2");
- $this->click("{$base}button1", "");
- $this->pause(800);
- $this->assertText("{$base}label1", "Button 1 was clicked : helloworld");
- }
-
- function setTinymceHtml($id, $text)
- {
- $tinymce = "this.browserbot.getCurrentWindow().tinyMCE.getInstanceById('{$id}')";
- return 'javascript{'."{$tinymce}.setHTML('{$text}') ? 0 : 1".'}';
- }
-}
-
+<?php
+
+class Ticket578TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket578');
+ $this->verifyTitle("Verifying Ticket 578", "");
+
+ $this->assertText("{$base}label1", "Label 1");
+ $this->click("{$base}button1", "");
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Button 1 was clicked : ");
+
+ $this->store($this->setTinymceHtml("{$base}text1", "helloworld"),"t2");
+ $this->click("{$base}button1", "");
+ $this->pause(800);
+ $this->assertText("{$base}label1", "Button 1 was clicked : helloworld");
+ }
+
+ function setTinymceHtml($id, $text)
+ {
+ $tinymce = "this.browserbot.getCurrentWindow().tinyMCE.getInstanceById('{$id}')";
+ return 'javascript{'."{$tinymce}.setHTML('{$text}') ? 0 : 1".'}';
+ }
+}
+
?> \ No newline at end of file