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
* information regarding copyright ownership.
*
......@@ -17,24 +16,18 @@
* 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.
-->
*/
package org.xwiki.rendering.internal.xhtml;
<document>
<metadata>
<p>
<metadata>
<metadata class="linked-hash-map">
<entry>
<string>syntax</string>
<string>xwiki/2.0</string>
</entry>
</metadata>
</metadata>
</p>
<group>
<paragraph>
<word>Heading</word>
</paragraph>
</group>
</metadata>
</document>
\ No newline at end of file
import org.xwiki.rendering.test.integration.junit5.RenderingTests;
/**
* Run all specific tests found in {@code *.test} files located in the classpath. These {@code *.test} files must follow
* the conventions described in {@link org.xwiki.rendering.test.integration.TestDataParser}.
*
* @version $Id$
*/
@RenderingTests.Scope(value = "annotatedxhtml10.specific")
public class AnnotatedXHTMLSpecificTest implements RenderingTests
{
}
<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
.#-----------------------------------------------------
<div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
<span>Heading</span>
</div>
<div data-xwiki-syntax="xwiki/2.0" class="xwiki-metadata-container"><div><p>Heading</p></div></div>
.#-----------------------------------------------------
.expect|event/1.0
.#-----------------------------------------------------
beginDocument
beginMetaData [[syntax]=[xwiki/2.0]]
beginGroup
beginParagraph
onWord [Heading]
endParagraph
endGroup
endMetaData [[syntax]=[xwiki/2.0]]
endDocument
\ No newline at end of file
.#-----------------------------------------------------
.input|xhtml/1.0
.#-----------------------------------------------------
<span class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
Heading
</span>
<div class="xwiki-metadata-container" data-xwiki-syntax="xwiki/2.0">
<span>Heading</span>
</div>
.#-----------------------------------------------------
.expect|event/1.0
.#-----------------------------------------------------
beginDocument
beginParagraph
beginMetaData [[syntax]=[xwiki/2.0]]
beginParagraph
onWord [Heading]
endMetaData [[syntax]=[xwiki/2.0]]
endParagraph
endMetaData [[syntax]=[xwiki/2.0]]
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
Markdown is supported
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