diff options
author | wei <> | 2006-12-13 10:07:37 +0000 |
---|---|---|
committer | wei <> | 2006-12-13 10:07:37 +0000 |
commit | 3c24d31c69dffb6f65214b6d383d446ac122ff14 (patch) | |
tree | 971267876c36893930f84d9663031b154799b10b /tests/FunctionalTests/tickets/protected/pages | |
parent | 840854be7886236d46d3408de5a084983373b4c7 (diff) |
Fixed #488.
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket484.page | 10 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket484.php | 30 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.page b/tests/FunctionalTests/tickets/protected/pages/Ticket484.page new file mode 100644 index 00000000..0b1b2c5f --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.page @@ -0,0 +1,10 @@ +<com:TContent ID="Content">
+
+ <h1>TActiveButton Functional Test</h1>
+ <com:TActiveButton ID="button2" Text="Button 1"
+ OnClick="button2_onclick" OnCallback="button2_oncallback" />
+
+ <com:TActiveLabel ID="label1" Text="Label 1" />
+
+
+</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket484.php b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php new file mode 100644 index 00000000..813ccc23 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket484.php @@ -0,0 +1,30 @@ +<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket484 extends TPage
+{
+
+ function onLoad($param)
+ {
+ new TActiveButton;
+ for ($i = 0; $i<1500; $i++)
+ {
+ $ctl = Prado::createComponent("TLabel");
+ $ctl->Text = "Label ".$i;
+ $this->Controls[] = $ctl;
+ }
+ }
+
+ function button2_onclick($sender, $param)
+ {
+ $this->label1->Text = "Button 1 was clicked ";
+ }
+
+ function button2_oncallback($sender, $param)
+ {
+ $this->label1->Text .= "using callback!";
+ }
+}
+
+?>
\ No newline at end of file |