maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r734156 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java
Date Tue, 13 Jan 2009 15:33:24 GMT
Author: ltheussl
Date: Tue Jan 13 07:33:16 2009
New Revision: 734156

URL: http://svn.apache.org/viewvc?rev=734156&view=rev
Log:
Add test for DOXIA-177, needs to be activated when fixed.

Modified:
    maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java?rev=734156&r1=734155&r2=734156&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/XhtmlBaseSinkTest.java
Tue Jan 13 07:33:16 2009
@@ -68,4 +68,48 @@
             }
         }
     }
+
+    /** @throws Exception */
+    public void testNestedTables()
+        throws Exception
+    {
+        // DOXIA-177
+        XhtmlBaseSink sink = null;
+
+        try
+        {
+            Writer writer =  new StringWriter();
+
+            sink = new XhtmlBaseSink( writer );
+
+            sink.table();
+            sink.tableRows( new int[] {0}, false );
+            sink.tableRow();
+            sink.tableCell();
+// FIXME: include nested table
+//            sink.table();
+//            sink.tableRows( new int[] {0}, false );
+//            sink.tableRow();
+//            sink.tableCell();
+//            sink.text( "nestedTableCell" );
+//            sink.tableCell_();
+//            sink.tableRow_();
+//            sink.tableRows_();
+//            sink.table_();
+            sink.tableCell_();
+            sink.tableRow_();
+            sink.tableRows_();
+            sink.table_();
+
+            String actual = writer.toString();
+            //assertTrue( actual.indexOf( "nestedTableCell" ) != 1 );
+        }
+        finally
+        {
+            if ( sink != null )
+            {
+                sink.close();
+            }
+        }
+    }
 }



Mime
View raw message