summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php')
-rw-r--r--tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php b/tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php
new file mode 100644
index 00000000..3653dae1
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php
@@ -0,0 +1,22 @@
+<?php
+
+class DelayedCallbackTestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open("active-controls/index.php?page=DelayedCallback");
+ $this->verifyTextPresent("Delayed Callback Test");
+
+ $this->assertText("status", "");
+ $this->click("button1");
+ $this->click("button2");
+
+ $this->pause("5000");
+ $this->assertText("status", "Callback 1 returned after 4s");
+ $this->pause("3000");
+ $this->assertText("status", "Callback 2 delayed 2s");
+
+ }
+}
+
+?> \ No newline at end of file