maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r770773 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java
Date Fri, 01 May 2009 17:53:25 GMT
Author: ltheussl
Date: Fri May  1 17:53:24 2009
New Revision: 770773

URL: http://svn.apache.org/viewvc?rev=770773&view=rev
Log:
Add a test snippet for DOXIA-310

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java?rev=770773&r1=770772&r2=770773&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/parser/XhtmlBaseParserTest.java
Fri May  1 17:53:24 2009
@@ -323,8 +323,9 @@
         sb.append( "<!ENTITY foo \"&#x159;\">" ).append( XhtmlBaseParser.EOL );
         sb.append( "<!ENTITY foo1 \"&nbsp;\">" ).append( XhtmlBaseParser.EOL );
         sb.append( "<!ENTITY foo2 \"&#x161;\">" ).append( XhtmlBaseParser.EOL );
+        sb.append( "<!ENTITY tritPos \"&#x1d7ed;\">" ).append( XhtmlBaseParser.EOL
);
         sb.append( "]>" ).append( XhtmlBaseParser.EOL );
-        sb.append( "<b>&foo;&foo1;&foo2;</b>" );
+        sb.append( "<b>&foo;&foo1;&foo2;&tritPos;</b>" );
 
         parser.setValidate( false );
         parser.parse( sb.toString(), sink );
@@ -347,6 +348,11 @@
         assertEquals( "&#x161;",  (String) event.getArgs()[0] );
 
         event = (SinkEventElement) it.next();
+        // FIXME: DOXIA-310
+        //assertEquals( "rawText", event.getName() );
+        //assertEquals( "&#x1d7ed;",  (String) event.getArgs()[0] );
+
+        event = (SinkEventElement) it.next();
         assertEquals( "bold_", event.getName() );
     }
 



Mime
View raw message