diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php b/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php new file mode 100644 index 00000000..de4cbc71 --- /dev/null +++ b/tests/FunctionalTests/active-controls/tests/ReplaceContentTestCase.php @@ -0,0 +1,48 @@ +<?php
+
+class ReplaceContentTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('active-controls/index.php?page=ReplaceContentTest');
+ $this->assertTextPresent('Callback Replace Content Test');
+
+ $this->assertText('subpanel', 'Sub Panel');
+ $this->assertText('panel1', 'Main Panel Sub Panel');
+
+ $this->type('content', 'something');
+
+ $this->click('btn_append');
+ $this->pause(500);
+
+ $this->assertText('subpanel', 'Sub Panel something');
+ $this->assertText('panel1', 'Main Panel Sub Panel something');
+
+ $this->type('content', 'more');
+ $this->click('btn_prepend');
+ $this->pause(500);
+
+ $this->assertText('subpanel', 'more Sub Panel something');
+ $this->assertText('panel1', 'Main Panel more Sub Panel something');
+
+
+ $this->type('content', 'prado');
+ $this->click('btn_before');
+ $this->pause(500);
+
+ $this->assertText('subpanel', 'more Sub Panel something');
+ $this->assertText('panel1', 'Main Panel pradomore Sub Panel something');
+
+ $this->type('content', ' php ');
+ $this->click('btn_after');
+ $this->pause(500);
+
+ $this->type('content', 'mauahahaha');
+ $this->click('btn_replace');
+ $this->pause(1000);
+
+ $this->assertText('panel1', 'Main Panel pradomauahahahaphp');
+ }
+}
+
+?>
\ No newline at end of file |