From 68eb20ae56e35cc48982be6f15c0738a276c3684 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 21 Oct 2006 02:46:12 +0000 Subject: update ajax callback to be quequed --- .../protected/pages/DelayedCallback.page | 7 ++++ .../protected/pages/DelayedCallback.php | 21 ++++++++++ .../protected/pages/Sessioned/PageStateTest.page | 45 ++++++++++++++++++++++ .../protected/pages/Sessioned/PageStateTest.php | 11 ++++++ .../protected/pages/Sessioned/config.xml | 4 ++ 5 files changed, 88 insertions(+) create mode 100644 tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.php create mode 100644 tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.page create mode 100644 tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php create mode 100644 tests/FunctionalTests/active-controls/protected/pages/Sessioned/config.xml (limited to 'tests/FunctionalTests/active-controls/protected') diff --git a/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.page b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.page new file mode 100644 index 00000000..b8fba648 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/DelayedCallback.page @@ -0,0 +1,7 @@ + +

Delayed Callback Test

+ + + + +
\ No newline at end of file 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 @@ +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 diff --git a/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.page b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.page new file mode 100644 index 00000000..c68be7ca --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.page @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+ + + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php new file mode 100644 index 00000000..3291189c --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/PageStateTest.php @@ -0,0 +1,11 @@ +label1->Text .= " button1 clicked "; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/active-controls/protected/pages/Sessioned/config.xml b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/config.xml new file mode 100644 index 00000000..754e9bc5 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/Sessioned/config.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file -- cgit v1.2.3