diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-10 15:29:09 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-10 15:29:09 +0100 |
commit | 031d20c405b922808f4bdf2997f964880b33ab66 (patch) | |
tree | 7fbda08ea61c9948db6b6fd1dd6db9a13370da4e /tests/FunctionalTests/tickets/protected/pages/Ticket220.page | |
parent | f35d43399a9ce03f08ffa326812bc5ed6764ef9e (diff) |
More tests porting
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket220.page')
-rwxr-xr-x | tests/FunctionalTests/tickets/protected/pages/Ticket220.page | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page index e4c8fa95..fec54092 100755 --- a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page @@ -1,30 +1,26 @@ <com:TContent ID="Content"> <h1>ClientScript Test</h1> - + <com:TClientScript ScriptUrl=<%~ test.js %>> if(typeof(ClientScriptInfo) == "undefined") ClientScriptInfo = []; ClientScriptInfo.push("ok 3?") </com:TClientScript> - + <com:TClientScript> if(typeof(ClientScriptInfo) == "undefined") ClientScriptInfo = []; ClientScriptInfo.push("ok 2!") </com:TClientScript> - + <com:TLabel ID="label1" Text="Label 1" /> <input type="button" id="button1" value="update" /> - + <com:TClientScript PradoScripts="prado"> - Event.observe("button1", "click", function() + $('#button1').click(function() { - element = $("<%= $this->label1->ClientID %>"); - if(element) - element.innerHTML = "Label 1: "+inspect(ClientScriptInfo); - else - alert("failed"); + $("#<%= $this->label1->ClientID %>").html('Label 1: ' + ClientScriptInfo.join('; ')); }); </com:TClientScript> - + </com:TContent>
\ No newline at end of file |