summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxue <>2006-02-17 20:05:07 +0000
committerxue <>2006-02-17 20:05:07 +0000
commit35836e45fab30dc4c31a4f51e32b551181e7ec86 (patch)
tree09c25d6999007e6d8ef07917c287be39596ce678 /tests
parent470259a42d63267f67f1404664c9c25ee36fa826 (diff)
Added test case for ticket #54.
Diffstat (limited to 'tests')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket54.page4
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php7
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket54Master.tpl1
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket54TestCase.php12
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket54.page b/tests/FunctionalTests/tickets/protected/pages/Ticket54.page
new file mode 100644
index 00000000..8ac4285b
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket54.page
@@ -0,0 +1,4 @@
+<%@ MasterClass="Application.pages.Ticket54Master" %>
+<com:TContent ID="A">A</com:TContent>
+<com:TContent ID="B">B</com:TContent>
+<com:TContent ID="C">C</com:TContent>
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
new file mode 100644
index 00000000..817e7c45
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.php
@@ -0,0 +1,7 @@
+<?php
+
+class Ticket54Master extends TTemplateControl
+{
+}
+
+?> \ No newline at end of file
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.tpl b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.tpl
new file mode 100644
index 00000000..af57b6c7
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket54Master.tpl
@@ -0,0 +1 @@
+|<com:TContentPlaceholder ID="A" />||<com:TContentPlaceholder ID="B" />||<com:TContentPlaceholder ID="C" />|
diff --git a/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php
new file mode 100644
index 00000000..c131a67d
--- /dev/null
+++ b/tests/FunctionalTests/tickets/tests/Ticket54TestCase.php
@@ -0,0 +1,12 @@
+<?php
+
+class Ticket54TestCase extends SeleniumTestCase
+{
+ function test()
+ {
+ $this->open('tickets/index.php?page=Ticket54');
+ $this->verifyTextPresent("|A||B||C|", "");
+ }
+}
+
+?> \ No newline at end of file