summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features
diff options
context:
space:
mode:
authorwei <>2006-05-07 09:47:15 +0000
committerwei <>2006-05-07 09:47:15 +0000
commit12c16fb3c7314b51d74dcaffdca4d311c6fad8c0 (patch)
treeef82b73e3a2fa5f8f313a43ce3dcaaf39f569d8f /tests/FunctionalTests/features
parenta7f6c6640ac9295eec3ae2edbb2250179eb85e33 (diff)
Adding TAutoComplete
Diffstat (limited to 'tests/FunctionalTests/features')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page26
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php17
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php1
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml6
4 files changed, 47 insertions, 3 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page
new file mode 100644
index 00000000..f0d78267
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page
@@ -0,0 +1,26 @@
+<com:TContent ID="Content">
+ <style>
+.autocomplete
+{
+ border:1px solid black;
+ background-color:white;
+}
+.autocomplete .selected
+{
+ background-color: #888;
+}
+ </style>
+ <com:TAutoComplete OnCallback="suggestEmails" ResultPanel.CssClass="autocomplete" />
+
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php
new file mode 100644
index 00000000..81508000
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php
@@ -0,0 +1,17 @@
+<?php
+/*
+ * Created on 7/05/2006
+ */
+
+class AutoComplete extends TPage
+{
+ public function suggestEmails($sender, $param)
+ {
+ $words = array('hello', 'world');
+ $sender->setDataSource($words);
+ $sender->dataBind();
+ $sender->render($param->getOutput());
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php
index bcf0f9cd..9821d8c9 100644
--- a/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php
@@ -2,6 +2,7 @@
/*
* Created on 6/05/2006
*/
+Prado::using('System.Web.UI.ActiveControls.*');
class Calculator extends TPage
{
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml
index 1bbc0acf..37988c44 100644
--- a/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
- <paths>
- <using namespace="System.Web.UI.ActiveControls.*" />
- </paths>
+ <paths>
+ <using namespace="System.Web.UI.ActiveControls.*" />
+ </paths>
</configuration>