Kaydet (Commit) affa362c authored tarafından Korrawit Pruegsanusak's avatar Korrawit Pruegsanusak Kaydeden (comit) Muthu Subramanian

fdo#47434 testcase

Change-Id: Ib69fa1fff94b7a3403a45fb948ff9e7b1ebc4f0f
üst 12ce1c3a
This diff is collapsed.
......@@ -84,10 +84,12 @@ public:
void test();
void testN759180();
void testFdo47434();
CPPUNIT_TEST_SUITE(SdFiltersTest);
CPPUNIT_TEST(test);
CPPUNIT_TEST(testN759180);
CPPUNIT_TEST(testFdo47434);
CPPUNIT_TEST_SUITE_END();
private:
......@@ -197,6 +199,14 @@ void SdFiltersTest::testN759180()
}
}
void SdFiltersTest::testFdo47434()
{
// The problem was the arrow that has cy < 180 and flipH = 0 is rendered incorrectly.
// Its height should be 1, not negative.
::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/pptx/fdo47434-all.pptx"));
testStuff(xDocShRef, rtl::OUStringToOString(getPathFromSrc("/sd/qa/unit/data/pptx/xml/fdo47434_page"), RTL_TEXTENCODING_UTF8));
}
void SdFiltersTest::testStuff(::sd::DrawDocShellRef xDocShRef, const rtl::OString& fileNameBase)
{
CPPUNIT_ASSERT_MESSAGE( "failed to load", xDocShRef.Is() );
......
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