summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected
diff options
context:
space:
mode:
authorDavid <ottodavid@gmx.net>2014-08-21 20:23:14 +0200
committerDavid <ottodavid@gmx.net>2014-08-22 12:41:59 +0200
commit559f84ea68d26d591c31fac982fc9d15e9a7b22b (patch)
tree6a52616687ae701061af05cc685a9968bb8bab94 /tests/FunctionalTests/active-controls/protected
parentd52bbb59ab1b1b9cd6d40f8f8b5c81dbbbc43d8f (diff)
Fixed some testcases (replaced script by TClientScript)
(part of f35d4339 on master)
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected')
-rwxr-xr-xtests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page6
-rwxr-xr-xtests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page4
-rwxr-xr-xtests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page6
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page
index 2ba1c6ba..5eadcb77 100755
--- a/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page
@@ -9,13 +9,13 @@
<div id="div1" style="border:1px solid #666; background-color: #ffe; text-align: center; padding:3em">
Click Me!
</div>
- <script type="text/javascript">
+ <com:TClientScript>
Event.OnLoad(function()
{
Event.observe($("div1"), "click", function()
{
Prado.Callback("<%= $this->callback1->UniqueID %>")
})
- })
- </script>
+ });
+ </com:TClientScript>
</com:TContent>
diff --git a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
index 2c6304b2..9534f0c0 100755
--- a/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
@@ -14,7 +14,7 @@
Click Me!
</div>
<com:TActiveLabel ID="label2" Text="Label 2" />
- <script type="text/javascript">
+ <com:TClientScript>
Event.OnLoad(function()
{
Event.observe($("div1"), "click", function()
@@ -22,6 +22,6 @@
Prado.Callback("<%= $this->callback1->UniqueID %>")
})
})
- </script>
+ </com:TClientScript>
</com:TContent>
diff --git a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page
index 980ea4d8..0a8167c8 100755
--- a/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page
+++ b/tests/FunctionalTests/active-controls/protected/pages/PostLoadingTest.page
@@ -9,7 +9,7 @@
Click Me!
</div>
- <script type="text/javascript">
+ <com:TClientScript>
Event.OnLoad(function()
{
Event.observe($("div1"), "click", function()
@@ -17,5 +17,5 @@
Prado.Callback("<%= $this->callback1->UniqueID %>")
})
})
- </script>
-</com:TContent> \ No newline at end of file
+ </com:TClientScript>
+</com:TContent>