summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
diff options
context:
space:
mode:
authorwei <>2007-05-09 04:21:41 +0000
committerwei <>2007-05-09 04:21:41 +0000
commitc3c0dc28d3e9964bddbe66dac34080cf9e1dd05c (patch)
tree648bb85a309712e66374dc4dac25cbea839a328b /tests/FunctionalTests/tickets/protected/pages/Ticket598.php
parent2c8dcb09949ea6fb1ae9ee45cc1b36a0d5c396d9 (diff)
Fixed #598
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket598.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket598.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket598.php b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
new file mode 100644
index 00000000..0456725f
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket598.php
@@ -0,0 +1,19 @@
+<?php
+Prado::using('System.Web.UI.ActiveControls.*');
+class Ticket598 extends TPage
+{
+public function onLoad ($param) {
+ parent::onLoad($param);
+ if (!$this->isPostBack and !$this->isCallBack) {
+ $this->Lbl->setText(date("h:m:s"));
+ }
+ }
+ public function startBigTask ($sender, $param) {
+ sleep(10); // Simulate task
+ }
+
+ public function updateLbl($sender, $param) {
+ $this->Lbl->SetText(date("h:m:s"));
+ }
+}
+?> \ No newline at end of file