]> source.dussan.org Git - poi.git/commitdiff
update TestWordToHtmlConverter tests (expected results)
authorSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 04:30:08 +0000 (04:30 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 04:30:08 +0000 (04:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149037 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java

index 7e2a651dd6facb375f03f8aaf251f1f8acf7ac27..7dbe0d06a00f0bf465812f5425be2822fd576000 100644 (file)
@@ -92,7 +92,7 @@ public class TestWordToHtmlConverter extends TestCase
     public void testAIOOBTap() throws Exception
     {
         String result = getHtmlText( "AIOOB-Tap.doc" );
-        assertContains( result.substring( 0, 6000 ), "<table>" );
+        assertContains( result.substring( 0, 6000 ), "<table class=\"t1\">" );
     }
 
     public void testBug33519() throws Exception
@@ -116,7 +116,7 @@ public class TestWordToHtmlConverter extends TestCase
     public void testBug46817() throws Exception
     {
         String result = getHtmlText( "Bug46817.doc" );
-        final String substring = "<table>";
+        final String substring = "<table class=\"t1\">";
         assertContains( result, substring );
     }
 
@@ -145,10 +145,12 @@ public class TestWordToHtmlConverter extends TestCase
     {
         String result = getHtmlText( "endingnote.doc" );
 
-        assertContains( result,
-                "<a class=\"endnoteanchor\" href=\"#endnote_1\" name=\"endnote_back_1\">1</a>" );
-        assertContains( result,
-                "<a href=\"#endnote_back_1\" name=\"endnote_1\">1</a>" );
+        assertContains(
+                result,
+                "<a class=\"a1 endnoteanchor\" href=\"#endnote_1\" name=\"endnote_back_1\">1</a>" );
+        assertContains(
+                result,
+                "<a class=\"a1 endnoteindex\" href=\"#endnote_back_1\" name=\"endnote_1\">1</a> <span" );
         assertContains( result, "Ending note text" );
     }