maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r659508 - in /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test: java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java site/apt/apt.apt site/xdoc/attributes.xml
Date Fri, 23 May 2008 11:40:00 GMT
Author: ltheussl
Date: Fri May 23 04:40:00 2008
New Revision: 659508

URL: http://svn.apache.org/viewvc?rev=659508&view=rev
Log:
Add tests for links to root document

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
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/xdoc/attributes.xml

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=659508&r1=659507&r2=659508&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
Fri May 23 04:40:00 2008
@@ -975,6 +975,8 @@
         assertEquals( "cdc.pdf", a.getAttributeValue( "href" ) );
         a = (HtmlAnchor) elementIterator.next();
         assertEquals( "./cdc.txt", a.getAttributeValue( "href" ) );
+        a = (HtmlAnchor) elementIterator.next();
+        assertEquals( "/index.html", a.getAttributeValue( "href" ) );
     }
 
     /**
@@ -1083,5 +1085,8 @@
         assertEquals( "./cdc.html", a.getAttributeValue( "href" ) );
         a = (HtmlAnchor) elementIterator.next();
         assertEquals( "#cdc.html", a.getAttributeValue( "href" ) );
+
+        a = (HtmlAnchor) elementIterator.next();
+        assertEquals( "/index.html", a.getAttributeValue( "href" ) );
     }
 }

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=659508&r1=659507&r2=659508&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 Fri May
23 04:40:00 2008
@@ -15,6 +15,7 @@
   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}}.
+  Link to {{{/index.html}root document}}.
 
 TOC Macro
 

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/xdoc/attributes.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/xdoc/attributes.xml?rev=659508&r1=659507&r2=659508&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/xdoc/attributes.xml
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/site/xdoc/attributes.xml
Fri May 23 04:40:00 2008
@@ -44,6 +44,7 @@
         Link to <a href="cdc.html">other document</a>.
         Link to <a href="cdc.pdf">other document</a>.
         Link to <a href="./cdc.txt">other document</a>.
+        Link to <a href="/index.html">root document</a>.
       </p>
     </section>
 



Mime
View raw message