[Libreoffice-commits] core.git: sw/qa

Caolán McNamara caolanm at redhat.com
Tue Mar 12 07:18:20 PDT 2013


 sw/qa/extras/ww8import/ww8import.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3790f56b2be9358815812bfad0b8098728a694db
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Mar 12 14:17:37 2013 +0000

    times are represented using local machines time, bah, just check for am/pm
    
    Change-Id: I3f0f76884e62cc7ec151a890ff0dd10e75194e3d

diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx
index b6f0166..d6101dc 100644
--- a/sw/qa/extras/ww8import/ww8import.cxx
+++ b/sw/qa/extras/ww8import/ww8import.cxx
@@ -265,7 +265,8 @@ void Test::testI120158()
     // get contents of 1st paragraph as text
     uno::Reference<uno::XInterface> paragraph0(paraEnum->nextElement(), uno::UNO_QUERY);
     uno::Reference<text::XTextRange> text0(paragraph0, uno::UNO_QUERY);
-    CPPUNIT_ASSERT_EQUAL( OUString( "3/12/2013 10:48:00 AM" ), text0->getString());
+    OUString sFieldResult = text0->getString();
+    CPPUNIT_ASSERT(sFieldResult.endsWith("AM") || sFieldResult.endsWith("PM"));
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(Test);


More information about the Libreoffice-commits mailing list