summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php
new file mode 100644
index 00000000..3c3038c2
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php
@@ -0,0 +1,22 @@
+<?php
+
+class LargePageStateTest2 extends TPage
+{
+ function onLoad($param)
+ {
+ parent::onLoad($param);
+ for($i=0;$i<100;$i++) //may try 10000, but may crash PHP.
+ {
+ $label = new TLabel();
+ $label->Text=" this is a very long label with some text $i:";
+ $this->Panel1->Controls[] = $label;
+ }
+ }
+
+ function button_clicked($sender, $param)
+ {
+ $this->status->Text .= ' Callback Clicked... ';
+ }
+}
+
+?> \ No newline at end of file