From 61bb16ee2e5f0a66234e1575242169a10fde47b5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 7 Jul 2006 14:54:15 +0000 Subject: Merge from 3.0 branch till 1253. --- .../tickets/protected/pages/Ticket220.page | 30 ++++++++++++++++++++++ .../tickets/protected/pages/Ticket225.page | 14 ++++++++++ .../tickets/protected/pages/Ticket225.php | 19 ++++++++++++++ .../tickets/protected/pages/test.js | 4 +++ 4 files changed, 67 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket220.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket225.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket225.php create mode 100644 tests/FunctionalTests/tickets/protected/pages/test.js (limited to 'tests/FunctionalTests/tickets/protected/pages') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket220.page b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page new file mode 100644 index 00000000..d5b6e182 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket220.page @@ -0,0 +1,30 @@ + +

ClientScript Test

+ + > + 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 = "Label 1: "+inspect(ClientScriptInfo); + else + alert("failed"); + }); + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket225.page b/tests/FunctionalTests/tickets/protected/pages/Ticket225.page new file mode 100644 index 00000000..362c4dce --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket225.page @@ -0,0 +1,14 @@ + +

RadioButton Group Tests

+ + + + + + + + + +
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket225.php b/tests/FunctionalTests/tickets/protected/pages/Ticket225.php new file mode 100644 index 00000000..2cc3fc38 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket225.php @@ -0,0 +1,19 @@ +label1->setText($this->getGroupIDs($this->button1)); + } + + private function getGroupIDs($radio) + { + $ids = ''; + foreach($radio->getRadioButtonsInGroup() as $control) + $ids .= " ".$control->getUniqueID(); + return $ids; + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/test.js b/tests/FunctionalTests/tickets/protected/pages/test.js new file mode 100644 index 00000000..e8e80b19 --- /dev/null +++ b/tests/FunctionalTests/tickets/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