Kaydet (Commit) 48baafc4 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

tdf#83877 Add ODF roundtrip test for signature lines

Change-Id: I4c55b19c9f7eaeb7c1c8df4266ea72ce24b17428
Reviewed-on: https://gerrit.libreoffice.org/51620Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 021340e7
......@@ -1941,6 +1941,26 @@ DECLARE_ODFEXPORT_TEST(testBulletAsImage, "BulletAsImage.odt")
CPPUNIT_ASSERT(xBitmap.is());
}
DECLARE_ODFEXPORT_TEST(testSignatureLineProperties, "signatureline-properties.fodt")
{
uno::Reference<drawing::XShape> xShape = getShape(1);
CPPUNIT_ASSERT(xShape.is());
CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xShape, "IsSignatureLine"));
CPPUNIT_ASSERT_EQUAL(OUString("{3C24159B-3B98-4F60-AB52-00E7721758E9}"),
getProperty<OUString>(xShape, "SignatureLineId"));
CPPUNIT_ASSERT_EQUAL(OUString("John Doe"),
getProperty<OUString>(xShape, "SignatureLineSuggestedSignerName"));
CPPUNIT_ASSERT_EQUAL(OUString("Farmer"),
getProperty<OUString>(xShape, "SignatureLineSuggestedSignerTitle"));
CPPUNIT_ASSERT_EQUAL(OUString("john@farmers.org"),
getProperty<OUString>(xShape, "SignatureLineSuggestedSignerEmail"));
CPPUNIT_ASSERT_EQUAL(OUString("Please farm here."),
getProperty<OUString>(xShape, "SignatureLineSigningInstructions"));
CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xShape, "SignatureLineCanAddComment"));
CPPUNIT_ASSERT_EQUAL(true, getProperty<bool>(xShape, "SignatureLineShowSignDate"));
}
#endif
CPPUNIT_PLUGIN_IMPLEMENT();
......
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