Commit 612437f2 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Remove metadata1 from the CTS and make it a specific test since it's...

[Misc] Remove metadata1 from the CTS and make it a specific test since it's only used for the HTML syntaxes (and incidentally causes the other syntaxes to not be at 100% anymore in the CTS report).
parent 256fdb40
<?xml version="1.0" encoding="UTF-8"?> /*
<!--
* See the NOTICE file distributed with this work for additional * See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. * information regarding copyright ownership.
* *
...@@ -17,24 +16,18 @@ ...@@ -17,24 +16,18 @@
* License along with this software; if not, write to the Free * License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
--> */
package org.xwiki.rendering.internal.xhtml;
<document> import org.xwiki.rendering.test.integration.junit5.RenderingTests;
<metadata>
<p> /**
<metadata> * Run all specific tests found in {@code *.test} files located in the classpath. These {@code *.test} files must follow
<metadata class="linked-hash-map"> * the conventions described in {@link org.xwiki.rendering.test.integration.TestDataParser}.
<entry> *
<string>syntax</string> * @version $Id$
<string>xwiki/2.0</string> */
</entry> @RenderingTests.Scope(value = "annotatedxhtml10.specific")
</metadata> public class AnnotatedXHTMLSpecificTest implements RenderingTests
</metadata> {
</p> }
<group>
<paragraph>
<word>Heading</word>
</paragraph>
</group>
</metadata>
</document>
\ No newline at end of file
<div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
\ No newline at end of file
.#-----------------------------------------------------
.input|xhtml/1.0
.# Verify that metadata is kept in the output.
.#-----------------------------------------------------
<div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
.#-----------------------------------------------------
.expect|annotatedxhtml/1.0
.#-----------------------------------------------------
<div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
<div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
\ No newline at end of file
.#----------------------------------------------------- .#-----------------------------------------------------
.input|xhtml/1.0 .input|xhtml/1.0
.#----------------------------------------------------- .#-----------------------------------------------------
<div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0"> <div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
<span>Heading</span>
</div>
.#----------------------------------------------------- .#-----------------------------------------------------
.expect|event/1.0 .expect|event/1.0
.#----------------------------------------------------- .#-----------------------------------------------------
beginDocument beginDocument
beginMetaData [[syntax]=[xwiki/2.0]] beginMetaData [[syntax]=[xwiki/2.0]]
beginGroup
beginParagraph beginParagraph
onWord [Heading] onWord [Heading]
endParagraph endParagraph
endGroup
endMetaData [[syntax]=[xwiki/2.0]] endMetaData [[syntax]=[xwiki/2.0]]
endDocument endDocument
\ No newline at end of file
.#----------------------------------------------------- .#-----------------------------------------------------
.input|xhtml/1.0 .input|xhtml/1.0
.#----------------------------------------------------- .#-----------------------------------------------------
<span class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0"> <div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
Heading <span>Heading</span>
</span> </div>
.#----------------------------------------------------- .#-----------------------------------------------------
.expect|event/1.0 .expect|event/1.0
.#----------------------------------------------------- .#-----------------------------------------------------
beginDocument beginDocument
beginParagraph
beginMetaData [[syntax]=[xwiki/2.0]] beginMetaData [[syntax]=[xwiki/2.0]]
beginParagraph
onWord [Heading] onWord [Heading]
endMetaData [[syntax]=[xwiki/2.0]]
endParagraph endParagraph
endMetaData [[syntax]=[xwiki/2.0]]
endDocument endDocument
\ No newline at end of file
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<span class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
Heading
</span>
.#-----------------------------------------------------
.expect|event/1.0
.#-----------------------------------------------------
beginDocument
beginParagraph
beginMetaData [[syntax]=[xwiki/2.0]]
onWord [Heading]
endMetaData [[syntax]=[xwiki/2.0]]
endParagraph
endDocument
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment