From 9cc6b7fffd31f4b9ee9aceef9224c84dcf28aeb8 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 4 Jul 2006 23:25:41 +0000 Subject: Merge from 3.0 branch till 1239. --- .../features/protected/pages/ClientScripTest.page | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/FunctionalTests/features/protected/pages/ClientScripTest.page (limited to 'tests/FunctionalTests/features/protected/pages/ClientScripTest.page') diff --git a/tests/FunctionalTests/features/protected/pages/ClientScripTest.page b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page new file mode 100644 index 00000000..8dbf7133 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/ClientScripTest.page @@ -0,0 +1,30 @@ + +

ClientScript Test

+ + ScriptPosition="Head"> + if(typeof(ClientScriptInfo) == "undefined") + ClientScriptInfo = []; + ClientScriptInfo.push("ok 3?") + + + + if(typeof(ClientScriptInfo) == "undefined") + ClientScriptInfo = []; + ClientScriptInfo.push("ok 2!") + + + + + + + Event.observe("button1", "click", function() + { + element = $("<%= $this->label1->ClientID %>"); + if(element) + element.innerHTML = inspect(ClientScriptInfo); + else + alert("failed"); + }); + + +
\ No newline at end of file -- cgit v1.2.3