From 6fb017ee9c3f611cad45d39b3fccbc2290601ec0 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 25 Jul 2011 09:02:53 +0000 Subject: [PATCH] add test case of processing of Bug47286.doc by Word-to-HTML converter git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150600 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hwpf/converter/TestWordToHtmlConverter.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java index b6b70fcc0a..83b1236498 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/converter/TestWordToHtmlConverter.java @@ -120,6 +120,16 @@ public class TestWordToHtmlConverter extends TestCase assertContains( result, substring ); } + public void testBug47286() throws Exception + { + String result = getHtmlText( "Bug47286.doc" ); + + assertFalse( result.contains( "FORMTEXT" ) ); + + assertContains( result, "Passport No and the date of expire" ); + assertContains( result, "mfa.gov.cy" ); + } + public void testBug48075() throws Exception { getHtmlText( "Bug48075.doc" ); -- 2.39.5