[Libreoffice-commits] .: sw/qa
Miklos Vajna
vmiklos at kemper.freedesktop.org
Wed Jun 13 04:26:45 PDT 2012
sw/qa/extras/ooxmltok/ooxmltok.cxx | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
New commits:
commit db109884f4ba013ab2363315394bd3c28405095a
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Wed Jun 13 13:27:38 2012 +0200
sw/qa/ooxmltok: explain the fieldmark test a bit more
Change-Id: Idbfdc440053c5c4cb6c015e49bc20733e72fda72
diff --git a/sw/qa/extras/ooxmltok/ooxmltok.cxx b/sw/qa/extras/ooxmltok/ooxmltok.cxx
index 5165ab0..5026530 100644
--- a/sw/qa/extras/ooxmltok/ooxmltok.cxx
+++ b/sw/qa/extras/ooxmltok/ooxmltok.cxx
@@ -501,6 +501,15 @@ void Test::testN764745()
void Test::testN766477()
{
+ /*
+ * The problem was that the checkbox was not checked.
+ *
+ * oParas = ThisComponent.Text.createEnumeration
+ * oPara = oParas.nextElement
+ * oRuns = oPara.createEnumeration
+ * oRun = oRuns.nextElement
+ * xray oRun.Bookmark.Parameters.ElementNames(0) 'Checkbox_Checked
+ */
load("n766477.docx");
uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY);
@@ -511,7 +520,6 @@ void Test::testN766477()
uno::Reference<text::XFormField> xFormField(xRun->getPropertyValue("Bookmark"), uno::UNO_QUERY);
uno::Reference<container::XNameContainer> xParameters(xFormField->getParameters());
uno::Sequence<OUString> aElementNames(xParameters->getElementNames());
- // The problem was that the checkbox was not checked.
CPPUNIT_ASSERT_EQUAL(OUString("Checkbox_Checked"), aElementNames[0]);
}
More information about the Libreoffice-commits
mailing list