Kaydet (Commit) 3790f56b authored tarafından Caolán McNamara's avatar Caolán McNamara

times are represented using local machines time, bah, just check for am/pm

Change-Id: I3f0f76884e62cc7ec151a890ff0dd10e75194e3d
üst 3c1eba73
...@@ -265,7 +265,8 @@ void Test::testI120158() ...@@ -265,7 +265,8 @@ void Test::testI120158()
// get contents of 1st paragraph as text // get contents of 1st paragraph as text
uno::Reference<uno::XInterface> paragraph0(paraEnum->nextElement(), uno::UNO_QUERY); uno::Reference<uno::XInterface> paragraph0(paraEnum->nextElement(), uno::UNO_QUERY);
uno::Reference<text::XTextRange> text0(paragraph0, 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); CPPUNIT_TEST_SUITE_REGISTRATION(Test);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment