summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php')
-rw-r--r--tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php b/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php
new file mode 100644
index 00000000..d72499cf
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/CallbackOptionsTestCase.php
@@ -0,0 +1,34 @@
+<?php
+
+class CallbackOptionsTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=CallbackOptionsTest");
+ $this->verifyTextPresent("TCallbackOptions Test");
+
+ $this->assertText("label1", "Label 1");
+ $this->assertText("label2", "Label 2");
+ $this->assertText("label3", "Label 3");
+
+ $this->click("button1");
+ $this->pause(500);
+ $this->assertText("label1", "Button 1 has returned");
+ $this->assertText("label2", "Label 2");
+ $this->assertText("label3", "Label 3");
+
+ $this->click("button2");
+ $this->pause(500);
+ $this->assertText("label1", "Button 1 has returned");
+ $this->assertText("label2", "Button 2 has returned");
+ $this->assertText("label3", "Label 3");
+
+ $this->click("button3");
+ $this->pause(500);
+ $this->assertText("label1", "Button 1 has returned");
+ $this->assertText("label2", "Button 2 has returned");
+ $this->assertText("label3", "Button 3 has returned");
+ }
+}
+
+?> \ No newline at end of file