summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.page8
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php12
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page4
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.page12
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php22
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.page13
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.php22
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page3
8 files changed, 93 insertions, 3 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.page
new file mode 100644
index 00000000..5f7959c5
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.page
@@ -0,0 +1,8 @@
+<com:TForm>
+<h1>Redirection Test</h1>
+
+<com:TActiveButton Text="Redirect to Default Page" OnClick="button_clicked" />
+
+<com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php
new file mode 100644
index 00000000..65958eeb
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveRedirectionTest.php
@@ -0,0 +1,12 @@
+<?php
+
+class ActiveRedirectionTest extends TPage
+{
+ function button_clicked($sender, $param)
+ {
+ $default=$this->Service->constructUrl($this->Service->DefaultPage);
+ $this->Response->redirect($default);
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page
index 5cacf2ef..068d673c 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page
@@ -2,7 +2,7 @@
<h1>Custom Login</h1>
-<com:TActiveLinkButton ID="showLogin" Attributes.OnClick="new Effect.Appear('loginBox')" Text="Login" />
+<a href="#" onclick="new Effect.Appear('loginBox')">Login</a>
<div id="loginBox" style="display: none;">
<div id="loginLoader" style="display: none;">Please Wait...</div>
@@ -28,7 +28,7 @@
<br />
<com:TActiveLinkButton ID="checkLogin" OnCallback="doLogin" Text="Login" ValidationGroup="login" />
- <com:TActiveLinkButton Attributes.OnClick="new Effect.Fade('loginBox')" Text="Close" />
+ <a href="#" onclick="new Effect.Fade('loginBox')">Close</a>
</div>
diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.page b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.page
new file mode 100644
index 00000000..701bd74c
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.page
@@ -0,0 +1,12 @@
+<com:TForm>
+
+<h1>Large Page State Test</h1>
+
+<com:TActiveButton Text="Show Changes" OnClick="button_clicked"/>
+<com:TActiveLabel ID="status" />
+<com:TJavascriptLogger />
+<com:TPanel ID="Panel1">
+
+</com:TPanel>
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php
new file mode 100644
index 00000000..1102ffb2
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest.php
@@ -0,0 +1,22 @@
+<?php
+
+class LargePageStateTest 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
diff --git a/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.page b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.page
new file mode 100644
index 00000000..0b662617
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/LargePageStateTest2.page
@@ -0,0 +1,13 @@
+<%@ StatePersisterClass="System.Web.UI.TSessionPageStatePersister" %>
+<com:TForm>
+
+<h1>Large Page State Test (using Session page state)</h1>
+
+<com:TActiveButton Text="Show Changes" OnClick="button_clicked"/>
+<com:TActiveLabel ID="status" />
+<com:TJavascriptLogger />
+<com:TPanel ID="Panel1">
+
+</com:TPanel>
+
+</com:TForm> \ No newline at end of file
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
diff --git a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
index 14f74013..8c0a0d71 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
@@ -1,3 +1,4 @@
+<%@ Application.Globalization.Charset="UTF-8" %>
<com:TForm ID="form1">
<style>
@@ -69,7 +70,7 @@
OnFailure="alert(10)"/>
</com:TInPlaceTextBox>
- <com:TActiveButton Text="ad" OnCallback="NewPackageSubject" ClientSide.OnFailure="alert(10)"/>
+ <com:TActiveButton Text="ad" OnCallback="button_clicked" />
<com:TJavascriptLogger />