Kaydet (Commit) bcf7ab3e authored tarafından Michael Stahl's avatar Michael Stahl

fix some issues with 214b0c83

Change-Id: Icd3cf90bf617c9c77dcf9cbda705bf348f980fb3
üst 61085083
...@@ -49,7 +49,6 @@ $(eval $(call gb_JunitTest_add_classes,sw_complex,\ ...@@ -49,7 +49,6 @@ $(eval $(call gb_JunitTest_add_classes,sw_complex,\
complex.accessibility.AccessibleRelationSet \ complex.accessibility.AccessibleRelationSet \
complex.checkColor.CheckChangeColor \ complex.checkColor.CheckChangeColor \
complex.writer.CheckBookmarks \ complex.writer.CheckBookmarks \
complex.writer.CheckCrossReferences \
complex.writer.CheckTable \ complex.writer.CheckTable \
complex.writer.CheckIndexedPropertyValues \ complex.writer.CheckIndexedPropertyValues \
complex.writer.CheckNamedPropertyValues \ complex.writer.CheckNamedPropertyValues \
......
...@@ -75,7 +75,7 @@ class CheckCrossReferences(unittest.TestCase): ...@@ -75,7 +75,7 @@ class CheckCrossReferences(unittest.TestCase):
def getFieldProps(self,xField): def getFieldProps(self,xField):
xProps = xField xProps = xField
self.assertTrue("Cannot retrieve field properties.", xProps) self.assertTrue(xProps, "Cannot retrieve field properties.")
return xProps return xProps
def checkField(self, xField , xProps, nFormat, aExpectedFieldResult ): def checkField(self, xField , xProps, nFormat, aExpectedFieldResult ):
...@@ -222,7 +222,7 @@ class CheckCrossReferences(unittest.TestCase): ...@@ -222,7 +222,7 @@ class CheckCrossReferences(unittest.TestCase):
#check inserted reference field #check inserted reference field
xField = xNewField xField = xNewField
self.assertTrue("J", xField.getPresentation(False)) #inserted reference field doesn't has correct field result self.assertEqual("J", xField.getPresentation(False)) #inserted reference field doesn't has correct field result
xParaTextRange.getStart().setString( "Hallo new bookmark: ") xParaTextRange.getStart().setString( "Hallo new bookmark: ")
self.xFieldsRefresh.refresh() self.xFieldsRefresh.refresh()
......
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