summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorwei <>2006-07-05 01:43:07 +0000
committerwei <>2006-07-05 01:43:07 +0000
commit91c4292a8063dd2d7a27e7629c015faa4bf052d6 (patch)
tree5c102f497f409e2f5deab2a41b07fdea9e7b84c5 /tests/FunctionalTests
parenta957f5fb091962c05738d619ebc65a908aa397ca (diff)
Upate TClientScript
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ClientScripTest.page8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ClientScripTest.page b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page
index 8dbf7133..d5b6e182 100644
--- a/tests/FunctionalTests/features/protected/pages/ClientScripTest.page
+++ b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page
@@ -1,13 +1,13 @@
<com:TContent ID="Content">
<h1>ClientScript Test</h1>
- <com:TClientScript ScriptUrl=<%~ test.js %> ScriptPosition="Head">
+ <com:TClientScript ScriptUrl=<%~ test.js %>>
if(typeof(ClientScriptInfo) == "undefined")
ClientScriptInfo = [];
ClientScriptInfo.push("ok 3?")
</com:TClientScript>
- <com:TClientScript ScriptPosition="Begin">
+ <com:TClientScript>
if(typeof(ClientScriptInfo) == "undefined")
ClientScriptInfo = [];
ClientScriptInfo.push("ok 2!")
@@ -16,12 +16,12 @@
<com:TLabel ID="label1" Text="Label 1" />
<input type="button" id="button1" value="update" />
- <com:TClientScript ScriptPosition="End" UsingPradoScripts="prado">
+ <com:TClientScript UsingPradoScripts="prado">
Event.observe("button1", "click", function()
{
element = $("<%= $this->label1->ClientID %>");
if(element)
- element.innerHTML = inspect(ClientScriptInfo);
+ element.innerHTML = "Label 1: "+inspect(ClientScriptInfo);
else
alert("failed");
});