You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by li...@apache.org on 2012/09/22 13:28:39 UTC
svn commit: r1388773 [3/3] -
/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/
Propchange: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBulletCharacterStyle.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_CharacterBullet.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_CharacterBullet.java?rev=1388773&view=auto
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_CharacterBullet.java (added)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_CharacterBullet.java Sat Sep 22 11:28:38 2012
@@ -0,0 +1,182 @@
+package testcase.uno.sw.paragraph;
+
+import static org.junit.Assert.*;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.openoffice.test.common.FileUtil;
+import org.openoffice.test.common.Testspace;
+import org.openoffice.test.uno.UnoApp;
+
+import com.sun.star.style.NumberingType;
+import com.sun.star.text.*;
+import com.sun.star.beans.*;
+import com.sun.star.container.XIndexAccess;
+import com.sun.star.container.XIndexReplace;
+import com.sun.star.frame.XStorable;
+import com.sun.star.lang.XMultiServiceFactory;
+import com.sun.star.uno.UnoRuntime;
+
+public class ParagraphNumberingAndBullet_CharacterBullet {
+ private static final UnoApp app = new UnoApp();
+ XText xText = null;
+
+ @Before
+ public void setUp() throws Exception {
+ app.start();
+
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ //app.close();
+ }
+ /*
+ * test paragraph background color
+ * 1.new a text document
+ * 2.insert some text
+ * 3.set paragraph bullet
+ * 4.save and close the document
+ * 5.reload the saved document and check the paragraph bullet
+ */
+ @Test @Ignore("Bug #120963 - [testUNO patch]the bullet character font style change to other font style character when save to doc.")
+ public void testNumberingAndBullet_CharacterBullet1() throws Exception {
+
+ XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
+ xText = xTextDocument.getText();
+ xText.setString("we are Chinese,they are American.we are all living in one earth!Hello,world!Hello,world!Hello,world!Hello,world!Hello,world!Hello,world!" +
+ "Hello,world!Hello,world!");
+ //create cursor to select paragraph and formating paragraph
+ XTextCursor xTextCursor = xText.createTextCursor();
+ //create paragraph property set
+ XPropertySet xTextProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
+ //create document service factory
+ XMultiServiceFactory xWriterFactory= (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDocument);
+ //set numbering character
+ XIndexAccess xNumRule = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class,xWriterFactory.createInstance("com.sun.star.text.NumberingRules"));
+ PropertyValue[] propsRule = {new PropertyValue(),new PropertyValue()};
+ propsRule[0].Name = "NumberingType";
+ propsRule[0].Value = NumberingType.CHAR_SPECIAL;
+ propsRule[1].Name = "BulletId";
+ propsRule[1].Value = (short)8226;
+ XIndexReplace xReplaceRule = (XIndexReplace) UnoRuntime.queryInterface(XIndexReplace.class, xNumRule);
+ xReplaceRule.replaceByIndex(0, propsRule);
+ //set paragraph numbering and bullet character
+ xTextProps.setPropertyValue("NumberingRules", xNumRule);
+ //save to odt
+ XStorable xStorable_odt = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDocument);
+ PropertyValue[] aStoreProperties_odt = new PropertyValue[2];
+ aStoreProperties_odt[0] = new PropertyValue();
+ aStoreProperties_odt[1] = new PropertyValue();
+ aStoreProperties_odt[0].Name = "Override";
+ aStoreProperties_odt[0].Value = true;
+ aStoreProperties_odt[1].Name = "FilterName";
+ aStoreProperties_odt[1].Value = "writer8";
+ xStorable_odt.storeToURL(FileUtil.getUrl(Testspace.getPath("output/test.odt")), aStoreProperties_odt);
+ //save to doc
+ XStorable xStorable_doc = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDocument);
+ PropertyValue[] aStoreProperties_doc = new PropertyValue[2];
+ aStoreProperties_doc[0] = new PropertyValue();
+ aStoreProperties_doc[1] = new PropertyValue();
+ aStoreProperties_doc[0].Name = "Override";
+ aStoreProperties_doc[0].Value = true;
+ aStoreProperties_doc[1].Name = "FilterName";
+ aStoreProperties_doc[1].Value = "MS Word 97";
+ xStorable_doc.storeToURL(FileUtil.getUrl(Testspace.getPath("output/test.doc")), aStoreProperties_doc);
+ app.closeDocument(xTextDocument);
+
+ //reopen the document
+ XTextDocument assertDocument_odt=(XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, app.loadDocument(Testspace.getPath("output/test.odt")));
+ XPropertySet xCursorProps_Assert_odt = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, assertDocument_odt.getText().createTextCursor());
+ XIndexAccess xNumRule_assert_odt = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xCursorProps_Assert_odt.getPropertyValue("NumberingRules"));
+ XIndexReplace xReplaceRule_assert_odt = (XIndexReplace) UnoRuntime.queryInterface(XIndexReplace.class, xNumRule_assert_odt);
+ PropertyValue[] propsRule_assert_odt=(PropertyValue[]) UnoRuntime.queryInterface(PropertyValue[].class,xReplaceRule_assert_odt.getByIndex(0));
+ //verify paragraph numbering and bullet alignment
+ assertEquals("assert numbering and bullet","NumberingType",propsRule_assert_odt[11].Name);
+ assertEquals("assert numbering and bullet",NumberingType.CHAR_SPECIAL,propsRule_assert_odt[11].Value);
+ assertEquals("assert numbering and bullet","BulletId",propsRule_assert_odt[12].Name);
+ assertEquals("assert numbering and bullet",(short)8226,propsRule_assert_odt[12].Value);
+
+ //reopen the document
+ XTextDocument assertDocument_doc=(XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, app.loadDocument(Testspace.getPath("output/test.doc")));
+ XPropertySet xCursorProps_Assert_doc = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, assertDocument_doc.getText().createTextCursor());
+ XIndexAccess xNumRule_assert_doc = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xCursorProps_Assert_doc.getPropertyValue("NumberingRules"));
+ PropertyValue[] propsRule_assert_doc=(PropertyValue[]) UnoRuntime.queryInterface(PropertyValue[].class,xNumRule_assert_doc.getByIndex(0));
+ //verify paragraph numbering and bullet alignment
+ assertEquals("assert numbering and bullet","NumberingType",propsRule_assert_doc[11].Name);
+ assertEquals("assert numbering and bullet",NumberingType.CHAR_SPECIAL,propsRule_assert_doc[11].Value);
+ assertEquals("assert numbering and bullet","BulletId",propsRule_assert_doc[12].Name);
+ assertEquals("assert numbering and bullet",(short)8226,propsRule_assert_doc[12].Value);
+ }
+ @Test @Ignore("Bug #120963 - [testUNO patch]the bullet character font style change to other font style character when save to doc.")
+ public void testNumberingAndBullet_CharacterBullet2() throws Exception {
+
+ XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
+ xText = xTextDocument.getText();
+ xText.setString("we are Chinese,they are American.we are all living in one earth!Hello,world!Hello,world!Hello,world!Hello,world!Hello,world!Hello,world!" +
+ "Hello,world!Hello,world!");
+ //create cursor to select paragraph and formating paragraph
+ XTextCursor xTextCursor = xText.createTextCursor();
+ //create paragraph property set
+ XPropertySet xTextProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xTextCursor);
+ //create document service factory
+ XMultiServiceFactory xWriterFactory= (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDocument);
+ //set numbering character
+ XIndexAccess xNumRule = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class,xWriterFactory.createInstance("com.sun.star.text.NumberingRules"));
+ PropertyValue[] propsRule = {new PropertyValue(),new PropertyValue()};
+ propsRule[0].Name = "NumberingType";
+ propsRule[0].Value = NumberingType.CHAR_SPECIAL;
+ propsRule[1].Name = "BulletId";
+ propsRule[1].Value = (short)9679;
+ XIndexReplace xReplaceRule = (XIndexReplace) UnoRuntime.queryInterface(XIndexReplace.class, xNumRule);
+ xReplaceRule.replaceByIndex(0, propsRule);
+ //set paragraph numbering and bullet character
+ xTextProps.setPropertyValue("NumberingRules", xNumRule);
+ //save to odt
+ XStorable xStorable_odt = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDocument);
+ PropertyValue[] aStoreProperties_odt = new PropertyValue[2];
+ aStoreProperties_odt[0] = new PropertyValue();
+ aStoreProperties_odt[1] = new PropertyValue();
+ aStoreProperties_odt[0].Name = "Override";
+ aStoreProperties_odt[0].Value = true;
+ aStoreProperties_odt[1].Name = "FilterName";
+ aStoreProperties_odt[1].Value = "writer8";
+ xStorable_odt.storeToURL(FileUtil.getUrl(Testspace.getPath("output/test.odt")), aStoreProperties_odt);
+ //save to doc
+ XStorable xStorable_doc = (XStorable) UnoRuntime.queryInterface(XStorable.class, xTextDocument);
+ PropertyValue[] aStoreProperties_doc = new PropertyValue[2];
+ aStoreProperties_doc[0] = new PropertyValue();
+ aStoreProperties_doc[1] = new PropertyValue();
+ aStoreProperties_doc[0].Name = "Override";
+ aStoreProperties_doc[0].Value = true;
+ aStoreProperties_doc[1].Name = "FilterName";
+ aStoreProperties_doc[1].Value = "MS Word 97";
+ xStorable_doc.storeToURL(FileUtil.getUrl(Testspace.getPath("output/test.doc")), aStoreProperties_doc);
+ app.closeDocument(xTextDocument);
+
+ //reopen the document
+ XTextDocument assertDocument_odt=(XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, app.loadDocument(Testspace.getPath("output/test.odt")));
+ XPropertySet xCursorProps_Assert_odt = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, assertDocument_odt.getText().createTextCursor());
+ XIndexAccess xNumRule_assert_odt = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xCursorProps_Assert_odt.getPropertyValue("NumberingRules"));
+ XIndexReplace xReplaceRule_assert_odt = (XIndexReplace) UnoRuntime.queryInterface(XIndexReplace.class, xNumRule_assert_odt);
+ PropertyValue[] propsRule_assert_odt=(PropertyValue[]) UnoRuntime.queryInterface(PropertyValue[].class,xReplaceRule_assert_odt.getByIndex(0));
+ //verify paragraph numbering and bullet alignment
+ assertEquals("assert numbering and bullet","NumberingType",propsRule_assert_odt[11].Name);
+ assertEquals("assert numbering and bullet",NumberingType.CHAR_SPECIAL,propsRule_assert_odt[11].Value);
+ assertEquals("assert numbering and bullet","BulletId",propsRule_assert_odt[12].Name);
+ assertEquals("assert numbering and bullet",(short)9679,propsRule_assert_odt[12].Value);
+
+ //reopen the document
+ XTextDocument assertDocument_doc=(XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, app.loadDocument(Testspace.getPath("output/test.doc")));
+ XPropertySet xCursorProps_Assert_doc = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, assertDocument_doc.getText().createTextCursor());
+ XIndexAccess xNumRule_assert_doc = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xCursorProps_Assert_doc.getPropertyValue("NumberingRules"));
+ PropertyValue[] propsRule_assert_doc=(PropertyValue[]) UnoRuntime.queryInterface(PropertyValue[].class,xNumRule_assert_doc.getByIndex(0));
+ //verify paragraph numbering and bullet alignment
+ assertEquals("assert numbering and bullet","NumberingType",propsRule_assert_doc[11].Name);
+ assertEquals("assert numbering and bullet",NumberingType.CHAR_SPECIAL,propsRule_assert_doc[11].Value);
+ assertEquals("assert numbering and bullet","BulletId",propsRule_assert_doc[12].Name);
+ assertEquals("assert numbering and bullet",(short)9679,propsRule_assert_doc[12].Value);
+ }
+}
Propchange: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_CharacterBullet.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic.java Sat Sep 22 11:28:38 2012
@@ -41,7 +41,7 @@ public class ParagraphNumberingAndBullet
* 4.save and close the document
* 5.reload the saved document and check the paragraph graphic bullet
*/
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_Alignment.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_Alignment.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_Alignment.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_Alignment.java Sat Sep 22 11:28:38 2012
@@ -41,7 +41,7 @@ public class ParagraphNumberingAndBullet
* 4.save and close the document
* 5.reload the saved document and check the paragraph graphic bullet align
*/
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_BottomofBaseline() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -116,7 +116,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.BOTTOM,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_CenterofBaseline() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -191,7 +191,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.CENTER,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_TopofBaseline() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -266,7 +266,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.TOP,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_BottomofCharacter() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -341,7 +341,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.CHAR_BOTTOM,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_CenterofCharacter() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -416,7 +416,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.CHAR_CENTER,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_TopofCharacter() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -491,7 +491,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.CHAR_TOP,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_BottomofLine() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -566,7 +566,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.LINE_BOTTOM,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_CenterofLine() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -641,7 +641,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","VertOrient",propsRule_assert_doc[15].Name);
assertEquals("assert numbering and bullet",VertOrientation.LINE_CENTER,propsRule_assert_doc[15].Value);
}
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic_Align_TopofLine() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_WidthAndHeight.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_WidthAndHeight.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_WidthAndHeight.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Graphic_WidthAndHeight.java Sat Sep 22 11:28:38 2012
@@ -42,7 +42,7 @@ public class ParagraphNumberingAndBullet
* 4.save and close the document
* 5.reload the saved document and check the paragraph graphic bullet
*/
- @Test@Ignore("#Bug 120833 - graphic bullet will change to character bullet when save to doc.")
+ @Test@Ignore("Bug #120833 - [testUNO patch]graphic bullet will change to character bullet when save to doc.")
public void testNumberingBullet_Graphic() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Numbering.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Numbering.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Numbering.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphNumberingAndBullet_Numbering.java Sat Sep 22 11:28:38 2012
@@ -31,7 +31,7 @@ public class ParagraphNumberingAndBullet
@After
public void tearDown() throws Exception {
- //app.close();
+ app.close();
}
/*
* test paragraph background color
@@ -374,7 +374,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","NumberingType",propsRule_assert_doc[11].Name);
assertEquals("assert numbering and bullet",NumberingType.ROMAN_UPPER,propsRule_assert_doc[11].Value);
}
- @Test@Ignore("#Bug 120826 - A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
+ @Test@Ignore("Bug #120826 - [testUNO patch]A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
public void testNumberingBullet_CHARS_UPPER_LETTER() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -443,7 +443,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","Suffix",propsRule_assert_doc[3].Name);
assertEquals("assert numbering and bullet",")",propsRule_assert_doc[3].Value);
}
- @Test@Ignore("#Bug 120826 - A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
+ @Test@Ignore("Bug #120826 - [testUNO patch]A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
public void testNumberingBullet_CHARS_LOWER_LETTER_Suffix() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -512,7 +512,7 @@ public class ParagraphNumberingAndBullet
assertEquals("assert numbering and bullet","Suffix",propsRule_assert_doc[3].Name);
assertEquals("assert numbering and bullet",")",propsRule_assert_doc[3].Value);
}
- @Test@Ignore("#Bug 120826 - A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
+ @Test@Ignore("Bug #120826 - [testUNO patch]A,B,C numbering bullet will change to A,AA,AAA when save to doc.")
public void testNumberingBullet_CHARS_LOWER_LETTER_Suffix_Prefix() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphOutlineAndNumbering.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphOutlineAndNumbering.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphOutlineAndNumbering.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphOutlineAndNumbering.java Sat Sep 22 11:28:38 2012
@@ -36,7 +36,7 @@ public class ParagraphOutlineAndNumberin
* 4.save and close the document
* 5.reload the saved document and check the paragraph outline and numbering
*/
- @Test@Ignore//Bug 120753 - paragraph outline level and numbering style change when save to doc
+ @Test@Ignore("Bug #120753 - [testUNO patch]paragraph outline level and numbering style change when save to doc")
public void testOutlineAndNumbering_NumberStyle() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -96,7 +96,7 @@ public class ParagraphOutlineAndNumberin
assertEquals("assert paragraph outline and numbering",(long)4,xCursorProps_Assert_doc.getPropertyValue("ParaLineNumberStartValue"));
}
- @Test@Ignore//Bug 120753 - paragraph outline level and numbering style change when save to doc
+ @Test@Ignore("Bug #120753 - [testUNO patch]paragraph outline level and numbering style change when save to doc")
public void testOutlineAndNumbering_ListStyle() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphShadow.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphShadow.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphShadow.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphShadow.java Sat Sep 22 11:28:38 2012
@@ -39,7 +39,7 @@ public class ParagraphShadow {
* 4.save and close the document
* 5.reload the saved document and check the paragraph shadow
*/
- @Test@Ignore //bug120697_paragraph shadow effect lost when save to doc.
+ @Test@Ignore("Bug #120697 - [testUNO patch]paragraph shadow effect lost when save to doc.")
public void testParagraphShadow_BottomRight() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -95,7 +95,7 @@ public class ParagraphShadow {
assertEquals("assert shadow width",100,shadowFormat_Assert2.ShadowWidth);
assertEquals("assert shadow color",0x00FF00FF,shadowFormat_Assert2.Color);
}
- @Test@Ignore //bug120697_paragraph shadow effect lost when save to doc.
+ @Test@Ignore("Bug #120697 - [testUNO patch]paragraph shadow effect lost when save to doc.")
public void testParagraphShadow_BottomLeft() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -151,7 +151,7 @@ public class ParagraphShadow {
assertEquals("assert shadow width",100,shadowFormat_Assert2.ShadowWidth);
assertEquals("assert shadow color",0x00FF00FF,shadowFormat_Assert2.Color);
}
- @Test@Ignore //bug120697_paragraph shadow effect lost when save to doc.
+ @Test@Ignore("Bug #120697 - [testUNO patch]paragraph shadow effect lost when save to doc.")
public void testParagraphShadow_TopLeft() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
@@ -207,7 +207,7 @@ public class ParagraphShadow {
assertEquals("assert shadow width",100,shadowFormat_Assert2.ShadowWidth);
assertEquals("assert shadow color",0x00FF00FF,shadowFormat_Assert2.Color);
}
- @Test@Ignore //bug120697_paragraph shadow effect lost when save to doc.
+ @Test@Ignore("Bug #120697 - [testUNO patch]paragraph shadow effect lost when save to doc.")
public void testParagraphShadow_TopRight() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document
Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphTabs.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphTabs.java?rev=1388773&r1=1388772&r2=1388773&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphTabs.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/paragraph/ParagraphTabs.java Sat Sep 22 11:28:38 2012
@@ -266,7 +266,7 @@ public class ParagraphTabs {
assertEquals("assert paragraph tab setting",5001,paraTabs_assert_doc[0].Position);
assertEquals("assert paragraph tab setting",'.',paraTabs_assert_doc[0].DecimalChar);
}
- @Test@Ignore //bug120748_the tabstops character of paragraph change to default when save to doc.
+ @Test@Ignore("Bug #120748 - [testUNO patch]the tabstops character of paragraph change to default when save to doc.")
public void ParagraphTabs_Decimal_UserDefineCharacter() throws Exception {
XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, app.newDocument("swriter"));// new a text document