summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/Data/xml
diff options
context:
space:
mode:
authorxue <>2005-11-10 12:47:19 +0000
committerxue <>2005-11-10 12:47:19 +0000
commit55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 (patch)
treea0599d5e36fdbb3f1e169ae56bab7d529597e3eb /tests/UnitTests/framework/Data/xml
Initial import of prado framework
Diffstat (limited to 'tests/UnitTests/framework/Data/xml')
-rw-r--r--tests/UnitTests/framework/Data/xml/data1.xml45
-rw-r--r--tests/UnitTests/framework/Data/xml/data1.xml.out41
-rw-r--r--tests/UnitTests/framework/Data/xml/data2.xml41
-rw-r--r--tests/UnitTests/framework/Data/xml/data2.xml.out40
-rw-r--r--tests/UnitTests/framework/Data/xml/data3.xml46
-rw-r--r--tests/UnitTests/framework/Data/xml/data3.xml.out45
6 files changed, 258 insertions, 0 deletions
diff --git a/tests/UnitTests/framework/Data/xml/data1.xml b/tests/UnitTests/framework/Data/xml/data1.xml
new file mode 100644
index 00000000..d865680a
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data1.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+]>
+<book id="listing">
+ <title>My lists</title>
+ <chapter id="books">
+ <title>My books</title>
+ <para>
+ <informaltable>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Title</entry>
+ <entry>Author</entry>
+ <entry>Language</entry>
+ <entry>ISBN</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>The Grapes of Wrath</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>0140186409</entry>
+ </row>
+ <row>
+ <entry>The Pearl</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>014017737X</entry>
+ </row>
+ <row>
+ <entry>Samarcande</entry>
+ <entry>Amine Maalouf</entry>
+ <entry>fr</entry>
+ <entry>2253051209</entry>
+ </row>
+ <!-- TODO: I have a lot of remaining books to add.. -->
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </chapter>
+</book>
diff --git a/tests/UnitTests/framework/Data/xml/data1.xml.out b/tests/UnitTests/framework/Data/xml/data1.xml.out
new file mode 100644
index 00000000..de491e4c
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data1.xml.out
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<book id="listing">
+ <title>My lists</title>
+ <chapter id="books">
+ <title>My books</title>
+ <para>
+ <informaltable>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>Title</entry>
+ <entry>Author</entry>
+ <entry>Language</entry>
+ <entry>ISBN</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>The Grapes of Wrath</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>0140186409</entry>
+ </row>
+ <row>
+ <entry>The Pearl</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>014017737X</entry>
+ </row>
+ <row>
+ <entry>Samarcande</entry>
+ <entry>Amine Maalouf</entry>
+ <entry>fr</entry>
+ <entry>2253051209</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </chapter>
+</book> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/xml/data2.xml b/tests/UnitTests/framework/Data/xml/data2.xml
new file mode 100644
index 00000000..9231ef7b
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data2.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<book id="listing" title="我的书单">
+ <chapter id="books">
+ <title>我的书</title>
+ <para>
+ <informaltable>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>标题</entry>
+ <entry>作者</entry>
+ <entry>语言</entry>
+ <entry>ISBN</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>The Grapes of Wrath</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>0140186409</entry>
+ </row>
+ <row>
+ <entry>The Pearl</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>014017737X</entry>
+ </row>
+ <row>
+ <entry>Samarcande</entry>
+ <entry>Amine Maalouf</entry>
+ <entry>fr</entry>
+ <entry>2253051209</entry>
+ </row>
+ <!-- TODO: I have a lot of remaining books to add.. -->
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </chapter>
+</book>
diff --git a/tests/UnitTests/framework/Data/xml/data2.xml.out b/tests/UnitTests/framework/Data/xml/data2.xml.out
new file mode 100644
index 00000000..d688884c
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data2.xml.out
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<book id="listing" title="我的书单">
+ <chapter id="books">
+ <title>我的书</title>
+ <para>
+ <informaltable>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>标题</entry>
+ <entry>作者</entry>
+ <entry>语言</entry>
+ <entry>ISBN</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>The Grapes of Wrath</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>0140186409</entry>
+ </row>
+ <row>
+ <entry>The Pearl</entry>
+ <entry>John Steinbeck</entry>
+ <entry>en</entry>
+ <entry>014017737X</entry>
+ </row>
+ <row>
+ <entry>Samarcande</entry>
+ <entry>Amine Maalouf</entry>
+ <entry>fr</entry>
+ <entry>2253051209</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </chapter>
+</book> \ No newline at end of file
diff --git a/tests/UnitTests/framework/Data/xml/data3.xml b/tests/UnitTests/framework/Data/xml/data3.xml
new file mode 100644
index 00000000..9e66a7f0
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data3.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<application id="test">
+ <modules>
+ <module id="request" />
+ <module id="response" />
+ <module id="cache" type="System.Modules.TSqliteCache"
+ DbFile="protected/cache.db" />
+ <module id="error">
+ <case id="exception" handler="processException" />
+ <default handler="processHttpError" />
+ </module>
+ </modules>
+ <services default="page">
+ <service id="page" RootPath="protected/pages">
+ <modules>
+ <module id="template" type="System.Modules.TTemplateManager" />
+ <module id="session" type="System.Modules.TSession" />
+ </modules>
+ <pages default="home">
+ <page id="home" type="HomePage" />
+ <page id="about" type="AboutPage" />
+ </pages>
+ <location path="users">
+ <security>
+ <allow page="register,login" />
+ <deny page="profile" user="?" />
+ <allow page="admin" role="admin" />
+ <deny page="admin" />
+ </security>
+ <pages>
+ <page id="register" type="RegisterPage" />
+ <page id="login" type="LoginPage" />
+ <page id="admin" type="AdminPage" />
+ <page id="profile" type="ProfilePage" />
+ </pages>
+ </location>
+ <parameters>
+ </parameters>
+ </service>
+ <service id="asset" type="System.Services.TAssetService" />
+ </services>
+ <parameters>
+ <parameter id="AdminEmail">qiang.xue@gmail.com</parameter>
+ <parameter id="NetShow" type="Demo.NetShow" Host="localhost" />
+ </parameters>
+</application>
diff --git a/tests/UnitTests/framework/Data/xml/data3.xml.out b/tests/UnitTests/framework/Data/xml/data3.xml.out
new file mode 100644
index 00000000..a87d0558
--- /dev/null
+++ b/tests/UnitTests/framework/Data/xml/data3.xml.out
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<application id="test">
+ <modules>
+ <module id="request" />
+ <module id="response" />
+ <module id="cache" type="System.Modules.TSqliteCache" DbFile="protected/cache.db" />
+ <module id="error">
+ <case id="exception" handler="processException" />
+ <default handler="processHttpError" />
+ </module>
+ </modules>
+ <services default="page">
+ <service id="page" RootPath="protected/pages">
+ <modules>
+ <module id="template" type="System.Modules.TTemplateManager" />
+ <module id="session" type="System.Modules.TSession" />
+ </modules>
+ <pages default="home">
+ <page id="home" type="HomePage" />
+ <page id="about" type="AboutPage" />
+ </pages>
+ <location path="users">
+ <security>
+ <allow page="register,login" />
+ <deny page="profile" user="?" />
+ <allow page="admin" role="admin" />
+ <deny page="admin" />
+ </security>
+ <pages>
+ <page id="register" type="RegisterPage" />
+ <page id="login" type="LoginPage" />
+ <page id="admin" type="AdminPage" />
+ <page id="profile" type="ProfilePage" />
+ </pages>
+ </location>
+ <parameters>
+ </parameters>
+ </service>
+ <service id="asset" type="System.Services.TAssetService" />
+ </services>
+ <parameters>
+ <parameter id="AdminEmail">qiang.xue@gmail.com</parameter>
+ <parameter id="NetShow" type="Demo.NetShow" Host="localhost" />
+ </parameters>
+</application> \ No newline at end of file