diff options
Diffstat (limited to 'tests')
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>
|