From c3c0dc28d3e9964bddbe66dac34080cf9e1dd05c Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 9 May 2007 04:21:41 +0000 Subject: Fixed #598 --- .../tickets/protected/pages/Ticket598.page | 17 ++++++++++++ .../tickets/protected/pages/Ticket598.php | 19 ++++++++++++++ .../tickets/protected/pages/Ticket603.page | 9 +++++++ .../tickets/protected/pages/Ticket603.php | 30 ++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket598.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket598.php create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket603.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket603.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket598.page b/tests/FunctionalTests/tickets/protected/pages/Ticket598.page new file mode 100644 index 00000000..7d618ff1 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket598.page @@ -0,0 +1,17 @@ + + +Time :
+ + + + Prado.WebUI.TTimeTriggeredCallback.start('<%= $this->Timer->ClientID %>') + + + Prado.WebUI.TTimeTriggeredCallback.stop('<%= $this->Timer->ClientID %>') + + + + + + +
\ No newline at end of file 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 @@ +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 diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.page b/tests/FunctionalTests/tickets/protected/pages/Ticket603.page new file mode 100644 index 00000000..d5023adc --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.page @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php new file mode 100644 index 00000000..6af0cf6d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php @@ -0,0 +1,30 @@ +_isHtml = true; + } + + public function switchContentTypeClicked( $sender, $param ) { + $this->_isHtml = !$this->_isHtml; + if ( $this->_isHtml ) { + $this->EditHtmlTextBox->EnableVisualEdit = true; + $this->EditHtmlTextBox->Text = 'somehtml'; + } else { + $this->EditHtmlTextBox->EnableVisualEdit = false; + $this->EditHtmlTextBox->Text = 'plai bla bla'; + } + } + + public function switchContentTypeCallback( $sender, $param ) { + $this->ContentPanel->render( $param->NewWriter ); + } +} + +?> \ No newline at end of file -- cgit v1.2.3