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

sw/qa/ooxmltok: explain the fieldmark test a bit more

Change-Id: Idbfdc440053c5c4cb6c015e49bc20733e72fda72
üst 743d4232
......@@ -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]);
}
......
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