Browse files

[CTS] Add new CTS test: section1

  • Loading branch information...
1 parent 8d1c404 commit 4e388fcf7f4fb264d66571a56c9b82ed7e041f1c @vmassol vmassol committed Jun 9, 2012
View
112 xwiki-rendering-integration-tests/src/test/resources/simple/section/section1.test
@@ -1,112 +0,0 @@
-.#-----------------------------------------------------
-.input|xwiki/2.0
-.#-----------------------------------------------------
-= Title level 1
-== Title level 2
-=== Title level 3
-==== Title level 4
-===== Title level 5
-====== Title level 6
-.#-----------------------------------------------------
-.inputexpect|xdom+xml/1.0
-.#-----------------------------------------------------
-<block name="document" version="1.0"><block name="section"><block name="header"><level>1</level><id>HTitlelevel1</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>1</word></block></block><block name="section"><block name="header"><level>2</level><id>HTitlelevel2</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>2</word></block></block><block name="section"><block name="header"><level>3</level><id>HTitlelevel3</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>3</word></block></block><block name="section"><block name="header"><level>4</level><id>HTitlelevel4</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>4</word></block></block><block name="section"><block name="header"><level>5</level><id>HTitlelevel5</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>5</word></block></block><block name="section"><block name="header"><level>6</level><id>HTitlelevel6</id><block name="word"><word>Title</word></block><block name="space"></block><block name="word"><word>level</word></block><block name="space"></block><block name="word"><word>6</word></block></block></block></block></block></block></block></block></block>
-.#-----------------------------------------------------
-.inputexpect|xdom+xml/current
-.#-----------------------------------------------------
-<document parameter0=""><section parameter0=""><header parameter0="1" parameter1="HTitlelevel1" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>1</word></header><section parameter0=""><header parameter0="2" parameter1="HTitlelevel2" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>2</word></header><section parameter0=""><header parameter0="3" parameter1="HTitlelevel3" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>3</word></header><section parameter0=""><header parameter0="4" parameter1="HTitlelevel4" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>4</word></header><section parameter0=""><header parameter0="5" parameter1="HTitlelevel5" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>5</word></header><section parameter0=""><header parameter0="6" parameter1="HTitlelevel6" parameter2=""><word>Title</word><space></space><word>level</word><space></space><word>6</word></header></section></section></section></section></section></section></document>
-.#-----------------------------------------------------
-.expect|event/1.0
-.#-----------------------------------------------------
-beginDocument
-beginSection
-beginHeader [1, HTitlelevel1]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [1]
-endHeader [1, HTitlelevel1]
-beginSection
-beginHeader [2, HTitlelevel2]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [2]
-endHeader [2, HTitlelevel2]
-beginSection
-beginHeader [3, HTitlelevel3]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [3]
-endHeader [3, HTitlelevel3]
-beginSection
-beginHeader [4, HTitlelevel4]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [4]
-endHeader [4, HTitlelevel4]
-beginSection
-beginHeader [5, HTitlelevel5]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [5]
-endHeader [5, HTitlelevel5]
-beginSection
-beginHeader [6, HTitlelevel6]
-onWord [Title]
-onSpace
-onWord [level]
-onSpace
-onWord [6]
-endHeader [6, HTitlelevel6]
-endSection
-endSection
-endSection
-endSection
-endSection
-endSection
-endDocument
-.#-----------------------------------------------------
-.inputexpect|xhtml/1.0
-.#-----------------------------------------------------
-<h1 id="HTitlelevel1"><span>Title level 1</span></h1><h2 id="HTitlelevel2"><span>Title level 2</span></h2><h3 id="HTitlelevel3"><span>Title level 3</span></h3><h4 id="HTitlelevel4"><span>Title level 4</span></h4><h5 id="HTitlelevel5"><span>Title level 5</span></h5><h6 id="HTitlelevel6"><span>Title level 6</span></h6>
-.#-----------------------------------------------------
-.expect|xwiki/2.0
-.#-----------------------------------------------------
-= Title level 1 =
-
-== Title level 2 ==
-
-=== Title level 3 ===
-
-==== Title level 4 ====
-
-===== Title level 5 =====
-
-====== Title level 6 ======
-.#-----------------------------------------------------
-.expect|plain/1.0
-.#-----------------------------------------------------
-Title level 1
-
-Title level 2
-
-Title level 3
-
-Title level 4
-
-Title level 5
-
-Title level 6
-.#-----------------------------------------------------
-.inputexpect|docbook/4.4
-.#-----------------------------------------------------
-<article><section><title>Title level 1</title><section><title>Title level 2</title><section><title>Title level 3</title><section><title>Title level 4</title><section><title>Title level 5</title><section><title>Title level 6</title></section></section></section></section></section></section></article>
View
6 ...endering-syntax-confluence/src/test/resources/confluence10/simple/section/section1.in.txt
@@ -0,0 +1,6 @@
+h1. Title level 1
+h2. Title level 2
+h3. Title level 3
+h4. Title level 4
+h5. Title level 5
+h6. Title level 6
View
6 .../xwiki-rendering-syntax-creole/src/test/resources/creole10/simple/section/section1.in.txt
@@ -0,0 +1,6 @@
+= Title level 1
+== Title level 2
+=== Title level 3
+==== Title level 4
+===== Title level 5
+====== Title level 6
View
1 ...i-rendering-syntax-docbook/src/test/resources/docbook44/simple/section/section1.inout.txt
@@ -0,0 +1 @@
+<article><section><title>Title level 1</title><section><title>Title level 2</title><section><title>Title level 3</title><section><title>Title level 4</title><section><title>Title level 5</title><section><title>Title level 6</title></section></section></section></section></section></section></article>
View
56 ...s/xwiki-rendering-syntax-event/src/test/resources/event10/simple/section/section1.out.txt
@@ -0,0 +1,56 @@
+beginDocument [[syntax]=[Event 1.0]]
+beginSection
+beginHeader [1, HTitlelevel1]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [1]
+endHeader [1, HTitlelevel1]
+beginSection
+beginHeader [2, HTitlelevel2]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [2]
+endHeader [2, HTitlelevel2]
+beginSection
+beginHeader [3, HTitlelevel3]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [3]
+endHeader [3, HTitlelevel3]
+beginSection
+beginHeader [4, HTitlelevel4]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [4]
+endHeader [4, HTitlelevel4]
+beginSection
+beginHeader [5, HTitlelevel5]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [5]
+endHeader [5, HTitlelevel5]
+beginSection
+beginHeader [6, HTitlelevel6]
+onWord [Title]
+onSpace
+onWord [level]
+onSpace
+onWord [6]
+endHeader [6, HTitlelevel6]
+endSection
+endSection
+endSection
+endSection
+endSection
+endSection
+endDocument [[syntax]=[Event 1.0]]
View
11 ...s/xwiki-rendering-syntax-plain/src/test/resources/plain10/simple/section/section1.out.txt
@@ -0,0 +1,11 @@
+Title level 1
+
+Title level 2
+
+Title level 3
+
+Title level 4
+
+Title level 5
+
+Title level 6
View
1 ...es/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/section/section1.in.txt
@@ -0,0 +1 @@
+<html><h1 id="HTitlelevel1"><span>Title level 1</span></h1><h2 id="HTitlelevel2"><span>Title level 2</span></h2><h3 id="HTitlelevel3"><span>Title level 3</span></h3><h4 id="HTitlelevel4"><span>Title level 4</span></h4><h5 id="HTitlelevel5"><span>Title level 5</span></h5><h6 id="HTitlelevel6"><span>Title level 6</span></h6></html>
View
1 ...s/xwiki-rendering-syntax-xhtml/src/test/resources/xhtml10/simple/section/section1.out.txt
@@ -0,0 +1 @@
+<h1 id="HTitlelevel1"><span>Title level 1</span></h1><h2 id="HTitlelevel2"><span>Title level 2</span></h2><h3 id="HTitlelevel3"><span>Title level 3</span></h3><h4 id="HTitlelevel4"><span>Title level 4</span></h4><h5 id="HTitlelevel5"><span>Title level 5</span></h5><h6 id="HTitlelevel6"><span>Title level 6</span></h6>
View
6 .../xwiki-rendering-syntax-xwiki20/src/test/resources/xwiki20/simple/section/section1.in.txt
@@ -0,0 +1,6 @@
+= Title level 1
+== Title level 2
+=== Title level 3
+==== Title level 4
+===== Title level 5
+====== Title level 6
View
11 ...xwiki-rendering-syntax-xwiki20/src/test/resources/xwiki20/simple/section/section1.out.txt
@@ -0,0 +1,11 @@
+= Title level 1 =
+
+== Title level 2 ==
+
+=== Title level 3 ===
+
+==== Title level 4 ====
+
+===== Title level 5 =====
+
+====== Title level 6 ======
View
1 xwiki-rendering-test/src/main/resources/cts/config.properties
@@ -25,3 +25,4 @@ testDescriptions = simple/italic/italic1 = Standard italic
testDescriptions = simple/paragraph/paragraph1 = Two standard paragraphs
testDescriptions = simple/table/table1 = Table with a header row
testDescriptions = simple/list/list1 = Unordered list
+testDescriptions = simple/section/section1 = Headings from level 1 to 6
View
91 xwiki-rendering-test/src/main/resources/cts/simple/section/section1.inout.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * See the NOTICE file distributed with this work for additional
+ * information regarding copyright ownership.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<document>
+ <parameter0>
+ <metadata class="linked-hash-map">
+ <entry>
+ <string>syntax</string>
+ <org.xwiki.rendering.syntax.Syntax>
+ <type>
+ <name>$syntax.type.name</name>
+ <id>$syntax.type.id</id>
+ </type>
+ <version>$syntax.version</version>
+ </org.xwiki.rendering.syntax.Syntax>
+ </entry>
+ </metadata>
+ </parameter0>
+ <section parameter0="">
+ <header parameter0="1" parameter1="HTitlelevel1" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>1</word>
+ </header>
+ <section parameter0="">
+ <header parameter0="2" parameter1="HTitlelevel2" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>2</word>
+ </header>
+ <section parameter0="">
+ <header parameter0="3" parameter1="HTitlelevel3" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>3</word>
+ </header>
+ <section parameter0="">
+ <header parameter0="4" parameter1="HTitlelevel4" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>4</word>
+ </header>
+ <section parameter0="">
+ <header parameter0="5" parameter1="HTitlelevel5" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>5</word>
+ </header>
+ <section parameter0="">
+ <header parameter0="6" parameter1="HTitlelevel6" parameter2="">
+ <word>Title</word>
+ <space></space>
+ <word>level</word>
+ <space></space>
+ <word>6</word>
+ </header>
+ </section>
+ </section>
+ </section>
+ </section>
+ </section>
+ </section>
+</document>

0 comments on commit 4e388fc

Please sign in to comment.