summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwei <>2006-02-02 07:08:16 +0000
committerwei <>2006-02-02 07:08:16 +0000
commit71ea1bd064dc36004e610fff56a23d09578cd7eb (patch)
tree5cedacd6f906d3f0eaefe1ec98c5151ab23eb8c3 /tests
parentb2fba25e4b146c4896304377643e498a22a3ced0 (diff)
Fixed #27
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page17
-rw-r--r--tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php18
-rw-r--r--tests/FunctionalTests/selenium/php/selenium.php6
3 files changed, 41 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page
new file mode 100644
index 00000000..098051fb
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.page
@@ -0,0 +1,17 @@
+<com:TContent ID="Content">
+<h2 class="defect">TCheckBoxList demo js error on IE</h2>
+
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ ErrorMessage="You must enter a value"
+ Display="Dynamic"
+ ValidationGroup="Group2"
+ />
+<com:TCheckBoxList AutoPostBack="true" ValidationGroup="Group2">
+ <com:TListItem Text="Agree" />
+ <com:TListItem Text="Disagree" />
+</com:TCheckBoxList>
+
+
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php
new file mode 100644
index 00000000..2c4e1bfb
--- /dev/null
+++ b/tests/FunctionalTests/protected/pages/Tickets/Ticket_27.php
@@ -0,0 +1,18 @@
+<?php
+
+class Ticket_27 extends TPage
+{
+
+
+}
+
+class Ticket_27_TestCase extends SeleniumTestCase
+{
+
+ function test()
+ {
+ $this->open($this->getPage($this));
+ }
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/selenium/php/selenium.php b/tests/FunctionalTests/selenium/php/selenium.php
index 36d86e1e..03b264db 100644
--- a/tests/FunctionalTests/selenium/php/selenium.php
+++ b/tests/FunctionalTests/selenium/php/selenium.php
@@ -462,6 +462,12 @@ class SeleniumTestCase extends UnitTestCase
parent::__construct();
}
+ function getPage($class)
+ {
+ $info = new ReflectionClass($class);
+ return Prado::getApplication()->getTestPage($info->getFileName());
+ }
+
function __call($func, $args)
{
if(count($args) == 0)