summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests
diff options
context:
space:
mode:
authortof <>2007-10-18 09:22:46 +0000
committertof <>2007-10-18 09:22:46 +0000
commit8bebf49fbfb92f039f56cb22b759d8e84ef19799 (patch)
tree6be47ae5ac609d31989eb1dad739e7823fd08ae2 /tests/FunctionalTests/tickets/tests
parent56615eb9b1cef2e707f1163c74aaecc7e94ae549 (diff)
Fixed #722 - Add Read only capabilities to TInPlaceTextBox
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket722TestCase.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php
new file mode 100644
index 00000000..68a0282c
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php
@@ -0,0 +1,29 @@
+<?php
+class Ticket722TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $base = 'ctl0_Content_';
+ $this->open('tickets/index.php?page=Ticket722');
+ $this->assertTitle("Verifying Ticket 722");
+
+ $this->assertText($base.'InPlaceTextBox__label', 'Editable Text');
+ $this->click($base.'InPlaceTextBox__label');
+ $this->pause(800);
+ $this->assertVisible($base.'InPlaceTextBox');
+ $this->type($base.'InPlaceTextBox',"Prado");
+ $this->fireEvent($base.'InPlaceTextBox', 'blur'); // Release textbox
+ $this->pause(800);
+ $this->assertNotVisible($base.'InPlaceTextBox');
+ $this->assertText($base.'InPlaceTextBox__label', 'Prado');
+ $this->click($base.'ctl0');
+ $this->pause(800);
+ $this->assertText($base.'InPlaceTextBox__label', 'Prado [Read Only]');
+ $this->click($base.'InPlaceTextBox__label');
+ $this->pause(800);
+ $this->assertNotVisible($base.'InPlaceTextBox');
+
+ }
+
+}
+?> \ No newline at end of file