diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-10-01 17:19:13 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-10-01 17:19:13 +0200 |
commit | a5d1b481a09c14d2e1459648efdeae4b8371ed01 (patch) | |
tree | 95e1d730b0e207e1a3a090e2a532f4c8a3e941f7 /tests/FunctionalTests/tickets/tests/Ticket578TestCase.php | |
parent | cb743343761771dcd056fb67862a999f96baa190 (diff) |
Fixed the remeining functional tests;
the tests using keyDown() had to be commented out..
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket578TestCase.php')
-rwxr-xr-x | tests/FunctionalTests/tickets/tests/Ticket578TestCase.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php index bc115927..47330326 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket578TestCase.php @@ -13,15 +13,10 @@ class Ticket578TestCase extends PradoGenericSeleniumTest $this->pause(800); $this->assertText("{$base}label1", "Button 1 was clicked : "); - $this->store($this->setTinymceHtml("{$base}text1", "helloworld"),"t2"); + $text="helloworld"; + $this->runScript("tinyMCE.get('{$base}text1').setContent('{$text}')"); $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".'}'; + $this->assertText("{$base}label1", "exact:Button 1 was clicked : <p>{$text}</p>"); } } |