maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r771059 - in /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test: java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java resources/site/xdoc/entityTest.xml
Date Sun, 03 May 2009 14:11:20 GMT
Author: ltheussl
Date: Sun May  3 14:11:19 2009
New Revision: 771059

URL: http://svn.apache.org/viewvc?rev=771059&view=rev
Log:
Another thing to fix: default entities like ampersand get un-escaped in head. See Doxia-309.

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/resources/site/xdoc/entityTest.xml

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java?rev=771059&r1=771058&r2=771059&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/EntitiesVerifier.java
Sun May  3 14:11:19 2009
@@ -48,10 +48,15 @@
         HtmlPage page = htmlPage( file );
         assertNotNull( page );
 
-        HtmlMeta author = (HtmlMeta)page.getHtmlElementsByName( "author" ).get( 0 );
+        HtmlMeta author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 0 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Ligature Æ" ) > 0 );
 
+        author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 1 );
+        assertNotNull( author );
+        // FIXME! DOXIA-309
+        //assertTrue( author.toString().indexOf( "Ampersand &" ) > 0 );
+
         HtmlElement element = page.getHtmlElementById( "contentBox" );
         assertNotNull( element );
         HtmlDivision division = (HtmlDivision) element;

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/resources/site/xdoc/entityTest.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/resources/site/xdoc/entityTest.xml?rev=771059&r1=771058&r2=771059&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/resources/site/xdoc/entityTest.xml
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/resources/site/xdoc/entityTest.xml
Sun May  3 14:11:19 2009
@@ -34,6 +34,7 @@
   <properties>
     <title>Test entities, cdatas and comments</title>
     <author email="test@email.com">Ligature &AElig;</author>
+    <author email="test@email.com">Ampersand &amp;</author>
   </properties>
 
   <body>



Mime
View raw message