summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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)