From 674353eec4d0a2ee006302720bf6df07ae3e9852 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 3 Jul 2006 04:12:56 +0000 Subject: Add TStylesheet and update TClientScript --- .../features/protected/pages/ClientScripTest.page | 30 ++++++++++++++++++++++ .../features/protected/pages/test.js | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 tests/FunctionalTests/features/protected/pages/ClientScripTest.page create mode 100644 tests/FunctionalTests/features/protected/pages/test.js (limited to 'tests') 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 diff --git a/tests/FunctionalTests/features/protected/pages/test.js b/tests/FunctionalTests/features/protected/pages/test.js new file mode 100644 index 00000000..e8e80b19 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/test.js @@ -0,0 +1,4 @@ +if(typeof(ClientScriptInfo) == "undefined") + ClientScriptInfo = []; + +ClientScriptInfo.push("ok") \ No newline at end of file -- cgit v1.2.3