diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php new file mode 100644 index 00000000..7e9195dc --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php @@ -0,0 +1,21 @@ +<?php
+
+class DelayedCallback extends TPage
+{
+ function callback1($sender, $param)
+ {
+ $ms = 4;
+ sleep($ms);
+ $this->status->Text="Callback 1 returned after {$ms}s";
+ }
+
+ function callback2($sender, $param)
+ {
+ $ms = 2;
+ sleep($ms);
+ $this->status->Text="Callback 2 delayed {$ms}s";
+ }
+
+}
+
+?>
\ No newline at end of file |