maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r771628 - 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 Tue, 05 May 2009 08:54:23 GMT
Author: ltheussl
Date: Tue May  5 08:54:22 2009
New Revision: 771628

URL: http://svn.apache.org/viewvc?rev=771628&view=rev
Log:
Test for DOXIA-312

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=771628&r1=771627&r2=771628&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
Tue May  5 08:54:22 2009
@@ -51,34 +51,43 @@
         HtmlMeta author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 0 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Ligature Æ" ) > 0 );
+        // DOXIA-312: FIXME!
+        //assertEquals( "Ligature Æ", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 1 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Ampersand &" ) > 0 );
+        assertEquals( "Ampersand &", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 2 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Less than <" ) > 0 );
+        assertEquals( "Less than <", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 3 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Greater than &gt;" ) > 0 );
+        assertEquals( "Greater than >", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 4 );
         assertNotNull( author );
         assertTrue( author.getContentAttribute().equals( "Apostrophe '" ) );
+        assertEquals( "Apostrophe '", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 5 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "Quote &quot;" ) > 0 );
+        assertEquals( "Quote \"", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 6 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "test@email.com" ) > 0 );
+        assertEquals( "test@email.com", author.getContentAttribute() );
 
         author = (HtmlMeta) page.getHtmlElementsByName( "author" ).get( 7 );
         assertNotNull( author );
         assertTrue( author.toString().indexOf( "test&#169;email.com" ) > 0 );
+        assertEquals( "test©email.com", author.getContentAttribute() );
 
         HtmlElement element = page.getHtmlElementById( "contentBox" );
         assertNotNull( element );
@@ -131,7 +140,7 @@
 
         h3 = (HtmlHeader3) elementIterator.next();
         assertNotNull( h3 );
-        // DOXIA-311: FIXME!
+        // DOXIA-314: FIXME!
         //assertEquals( h3.asText().trim(), "Local Entities: 'Α' 'Β' 'Γ' 'ퟭ'"
);
 
         a = (HtmlAnchor) elementIterator.next();

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=771628&r1=771627&r2=771628&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
Tue May  5 08:54:22 2009
@@ -33,6 +33,7 @@
   xsi:schemaLocation="http://maven.apache.org/XDOC/2.0 file:../../../../../../../doxia/doxia-modules/doxia-module-xdoc/src/main/resources/xdoc-2.0.xsd">
   <properties>
     <title>Test entities, cdatas and comments</title>
+    <!-- Test comment: DOXIA-312 -->
     <author email="test@email.com">Ligature &AElig;</author>
     <author email="test@email.com">Ampersand &amp;</author>
     <author email="test@email.com">Less than &lt;</author>



Mime
View raw message