summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php')
-rw-r--r--tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
new file mode 100644
index 00000000..b927b3e9
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/CustomTemplateTestCase.php
@@ -0,0 +1,22 @@
+<?php
+
+class CustomTemplateTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('active-controls/index.php?page=CustomTemplateControlTest');
+ $this->assertTextPresent('Add Dynamic Custom TTemplateControl Test');
+ $this->assertText('label1', 'Label 1');
+
+ $this->type('foo', 'Foo Bar!');
+ $this->click('button2');
+ $this->pause(500);
+
+ $this->assertVisible('ctl1_ThePanel');
+ $this->assertTextPresent('Client ID: ctl1_ThePanel');
+
+ $this->assertText('label1', 'Button 1 was clicked Foo Bar! using callback!... and this is the textbox text: Foo Bar!');
+ }
+}
+
+?> \ No newline at end of file