Skip to content

Commit

Permalink
[MSITE-853] prepare ITs to check DOXIA-597 and DOXIA-571 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Feb 14, 2020
1 parent ae9c132 commit 58658d8
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 12 deletions.
10 changes: 0 additions & 10 deletions src/it/projects/doxia-formats/pom.xml
Expand Up @@ -56,21 +56,11 @@ under the License.
</attributes>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.5</version>
</dependency>
<dependency><!-- MSITE-782 -->
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency><!-- TODO remove when prerequisite is Java 7 -->
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-markdown</artifactId>
<version>1.7</version>
</dependency>
</dependencies>
</plugin>
</plugins>
Expand Down
13 changes: 13 additions & 0 deletions src/it/projects/doxia-formats/src/site/apt/index.apt
Expand Up @@ -57,3 +57,16 @@ Velocity
See {{{./velocity-context.html} Doxia Site Renderer Velocity Context demo}}.

See also {{{./velocity-include-parse.html} Velocity #parse and #include demo}}.

Reference output

<<<Monospaced>>>

+--------+
code block
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: D:\apache-maven-3.6.3\apache-maven\bin\..
Java version: 1.8.0_232, vendor: AdoptOpenJDK, runtime: C:\Program Files\AdoptOpenJDK\jdk-8.0.232.09-hotspot\jre
Default locale: en_US, platform encoding: Cp1250
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
+--------+
13 changes: 13 additions & 0 deletions src/it/projects/doxia-formats/src/site/markdown/markdown.md
Expand Up @@ -27,3 +27,16 @@ see [DOXIA-473](https://issues.apache.org/jira/browse/DOXIA-473).
<!-- MACRO{toc|fromDepth=1|toDepth=2} -->

### Subsection

Missing `monospaced` support [DOXIA-597](https://issues.apache.org/jira/browse/DOXIA-597)

Missing code block color [DOXIA-571](https://issues.apache.org/jira/browse/DOXIA-571):

```
code block
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: D:\apache-maven-3.6.3\apache-maven\bin\..
Java version: 1.8.0_232, vendor: AdoptOpenJDK, runtime: C:\Program Files\AdoptOpenJDK\jdk-8.0.232.09-hotspot\jre
Default locale: en_US, platform encoding: Cp1250
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
```
8 changes: 7 additions & 1 deletion src/it/projects/doxia-formats/src/site/site.xml
Expand Up @@ -25,6 +25,12 @@ under the License.
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>1.4</version>
<version>1.8</version>
</skin>

<custom>
<fluidoSkin>
<sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
</fluidoSkin>
</custom>
</project>
4 changes: 3 additions & 1 deletion src/it/projects/doxia-formats/verify.groovy
Expand Up @@ -22,7 +22,9 @@ content = new File( basedir, 'target/site/markdown.html' ).text;

assert content.contains( 'Markdown Format works' );

assert !content.contains( ' quotes and double quotes were stripped' );
assert !content.contains( ' quotes and double quotes were stripped' ); // DOXIA-473
//assert content.contains( '<code>monospaced</code> support' ); // DOXIA-597
//assert content.contains( '<div class="source"><pre class="prettyprint linenums">code block' ); // DOXIA-571

assert !content.contains( 'MACRO' );
assert content.contains( 'href="#Subsection"' );
Expand Down

0 comments on commit 58658d8

Please sign in to comment.