maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r700732 - in /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test: java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java site/apt/apt.apt
Date Wed, 01 Oct 2008 10:43:15 GMT
Author: ltheussl
Date: Wed Oct  1 03:43:15 2008
New Revision: 700732

URL: http://svn.apache.org/viewvc?rev=700732&view=rev
Log:
[DOXIA-257] Add test case for anchors with whitespace

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/apt/apt.apt

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java?rev=700732&r1=700731&r2=700732&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
Wed Oct  1 03:43:15 2008
@@ -1105,6 +1105,12 @@
         assertEquals( "#Anchor", a.getAttributeValue( "href" ) );
         a = (HtmlAnchor) elementIterator.next();
         assertEquals( "#Anchor", a.getAttributeValue( "href" ) );
+
+        a = (HtmlAnchor) elementIterator.next();
+        assertEquals( "Anchor_with_space", a.getAttributeValue( "name" ) );
+        a = (HtmlAnchor) elementIterator.next();
+        assertEquals( "#Anchor_with_space", a.getAttributeValue( "href" ) );
+
         a = (HtmlAnchor) elementIterator.next();
         assertEquals( "http://maven.apache.org/", a.getAttributeValue( "href" ) );
         assertEquals( "externalLink", a.getAttributeValue( "class" ) );

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/apt/apt.apt
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/apt/apt.apt?rev=700732&r1=700731&r2=700732&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/apt/apt.apt (original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/apt/apt.apt Wed Oct
 1 03:43:15 2008
@@ -12,6 +12,7 @@
   {cdc.html}
   Link to {{Anchor}}.
   Link to anchor {{{Anchor}showing alternate text}}.
+  {Anchor with space} and {{{Anchor_with_space}link to it}}.
   Link to {{http://maven.apache.org/}}. 
   Link to {{{http://maven.apache.org/}Maven home page}}.
   Link to {{{./cdc.html}other document}} and within {{{cdc.html}same document}}.



Mime
View raw message