Kaydet (Commit) adc7efcd authored tarafından Miklos Vajna's avatar Miklos Vajna

RTF filter: add TQDEC testcase

lcov points out this was uncovered previously.

Change-Id: I8f83e811a0f1144dd7ba6a695b4856cdeb7350cf
Reviewed-on: https://gerrit.libreoffice.org/66703
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 58f30cf1
{\rtf1
\pard\plain \tqdec\tx1701
A\tab B\par
}
......@@ -244,6 +244,15 @@ DECLARE_RTFEXPORT_TEST(testTdf122455, "tdf122455.rtf")
CPPUNIT_ASSERT_EQUAL(16.0, getProperty<double>(getRun(getParagraph(1), 1), "CharHeight"));
}
DECLARE_RTFEXPORT_TEST(testTabs, "tabs.rtf")
{
// Test tab alignment in decimal mode.
auto aTabStops = getProperty<uno::Sequence<style::TabStop>>(getParagraph(1), "ParaTabStops");
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1), aTabStops.getLength());
const style::TabStop& rTabStop = aTabStops[0];
CPPUNIT_ASSERT_EQUAL(style::TabAlign_DECIMAL, rTabStop.Alignment);
}
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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