diff options
Diffstat (limited to 'tests/FunctionalTests/features')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ClientScripTest.page | 8 |
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"); }); |