summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorwei <>2006-01-09 04:39:05 +0000
committerwei <>2006-01-09 04:39:05 +0000
commit9f2ecd591d5be41bb9dc7b8a0fa144ac35a173bb (patch)
tree122d77d166d5df687d524173b883d87fd6674c0d /tests/FunctionalTests
parent9c9a2d731fea9679f65904a3a6b72dd78b4253a4 (diff)
TRequiredFieldValidator works now. See FunctionalTests/index.php in your browser.
Diffstat (limited to 'tests/FunctionalTests')
-rw-r--r--tests/FunctionalTests/protected/application.xml4
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page7
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php27
-rw-r--r--tests/FunctionalTests/protected/runtime/config.cachebin2357 -> 0 bytes
-rw-r--r--tests/FunctionalTests/protected/runtime/global.cache1
5 files changed, 36 insertions, 3 deletions
diff --git a/tests/FunctionalTests/protected/application.xml b/tests/FunctionalTests/protected/application.xml
index fe17e3c0..53e73457 100644
--- a/tests/FunctionalTests/protected/application.xml
+++ b/tests/FunctionalTests/protected/application.xml
@@ -11,8 +11,8 @@
<translation type="XLIFF" source="Tests.messages"
autosave="true" cache="true" />
</module>
- <module id="logger" class="System.Log.TEventLog">
- <logger destination="file" directory="Tests.logs" />
+ <module id="logger" class="System.Log.TLogRouter">
+ <route class="TFileLogRoute" />
</module>
</modules>
</application> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
new file mode 100644
index 00000000..4c9a8cd3
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
@@ -0,0 +1,7 @@
+<com:TForm>
+<h1>Basic TRequiredFieldValidator Test1</h1>
+ <com:TTextBox ID="text1" />
+ <com:TRequiredFieldValidator ID="validator1" ControlToValidate="text1" ErrorMessage="*" />
+ <com:TButton ID="button1" Text="Click" />
+ <com:TJavascriptLogger />
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
new file mode 100644
index 00000000..3456dd40
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.php
@@ -0,0 +1,27 @@
+<?php
+
+class RequiredFieldValidator extends TPage
+{
+
+}
+
+class RequiredFieldTestCase extends SeleniumTestCase
+{
+ function setup()
+ {
+ $this->open(Prado::getApplication()->getTestPage(__FILE__));
+ }
+
+ function testValidator()
+ {
+ $this->assertTextPresent("Basic TRequiredFieldValidator Test1");
+ $this->assertNotVisible("validator1");
+ $this->click("button1");
+ $this->assertVisible("validator1");
+ $this->type("text1", "test");
+ $this->clickAndWait("button1");
+ $this->assertNotVisible("validator1");
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/runtime/config.cache b/tests/FunctionalTests/protected/runtime/config.cache
deleted file mode 100644
index 890ff3da..00000000
--- a/tests/FunctionalTests/protected/runtime/config.cache
+++ /dev/null
Binary files differ
diff --git a/tests/FunctionalTests/protected/runtime/global.cache b/tests/FunctionalTests/protected/runtime/global.cache
deleted file mode 100644
index c0bf9e01..00000000
--- a/tests/FunctionalTests/protected/runtime/global.cache
+++ /dev/null
@@ -1 +0,0 @@
-a:1:{s:35:"prado:pagestatepersister:privatekey";s:32:"7ff407291c6929ec690bdf57a2dd1a7d";} \ No newline at end of file