diff options
author | wei <> | 2006-10-21 02:46:12 +0000 |
---|---|---|
committer | wei <> | 2006-10-21 02:46:12 +0000 |
commit | 68eb20ae56e35cc48982be6f15c0738a276c3684 (patch) | |
tree | 520ce7d2d4f72ae3bd326b586be6f0cc1a38afb6 /tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php | |
parent | 5d6b7068de8768d56c4731cc7301438b69354d57 (diff) |
update ajax callback to be quequed
Diffstat (limited to 'tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/tests/DelayedCallbackTestCase.php | 22 |
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 |