diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/mod/_sw/SwXTextTable.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes:
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwXTextTable.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwXTextTable.java | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java index c3bc78208b27..ca7d048181c7 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -81,13 +81,13 @@ public class SwXTextTable extends TestCase { @param tParam TestParameters class which contains additional test parameters @param log PrintWriter class to log the test state and result - + @return TestEnvironment class - + @see TestParameters @see PrintWriter */ - protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, + protected synchronized TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { // creation of testobject here XTextTable oObj = null; @@ -99,7 +99,7 @@ public class SwXTextTable extends TestCase { instance = SOF.createTextTable(xTextDoc); } catch (com.sun.star.uno.Exception uE) { uE.printStackTrace(log); - throw new StatusException("Couldn't create testobj : " + + throw new StatusException("Couldn't create testobj : " + uE.getMessage(), uE); } @@ -115,7 +115,7 @@ public class SwXTextTable extends TestCase { SOF.insertTextContent(xTextDoc, oObj); } catch (com.sun.star.uno.Exception uE) { uE.printStackTrace(log); - throw new StatusException("Couldn't create TextTable : " + + throw new StatusException("Couldn't create TextTable : " + uE.getMessage(), uE); } } @@ -151,7 +151,7 @@ public class SwXTextTable extends TestCase { //Adding relation for util.XSortable final PrintWriter finalLog = log; final XTextTable oTable = oObj; - tEnv.addObjRelation("SORTCHECKER", + tEnv.addObjRelation("SORTCHECKER", new ifc.util._XSortable.XSortChecker() { PrintWriter out = finalLog; @@ -163,23 +163,23 @@ public class SwXTextTable extends TestCase { oTable.getCellByName("A1").setValue(4); XTextRange textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A2")); textRange.setString("b"); oTable.getCellByName("A3").setValue(3); textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A4")); textRange.setString("a"); oTable.getCellByName("A5").setValue(23); textRange = (XTextRange) UnoRuntime.queryInterface( - XTextRange.class, + XTextRange.class, oTable.getCellByName("A6")); textRange.setString("ab"); } - public boolean checkSort(boolean isSortNumbering, + public boolean checkSort(boolean isSortNumbering, boolean isSortAscending) { out.println("Sort checking..."); @@ -201,7 +201,7 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 3, 4, 23"); - out.println("Getting: " + value[3] + ", " + + out.println("Getting: " + value[3] + ", " + value[4] + ", " + value[5]); } } else { @@ -211,7 +211,7 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 23, 4, 3"); - out.println("Getting: " + value[1] + ", " + + out.println("Getting: " + value[1] + ", " + value[2] + ", " + value[3]); } } @@ -222,9 +222,9 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: 23, 3, 4, a, ab, b"); - out.println("Getting: " + value[0] + ", " + - value[1] + ", " + value[2] + - ", " + value[3] + ", " + + out.println("Getting: " + value[0] + ", " + + value[1] + ", " + value[2] + + ", " + value[3] + ", " + value[4] + ", " + value[5]); } } else { @@ -233,9 +233,9 @@ public class SwXTextTable extends TestCase { if (!res) { out.println("Expected: b, ab, a, 4, 3, 23"); - out.println("Getting: " + value[0] + ", " + - value[1] + ", " + value[2] + - ", " + value[3] + ", " + + out.println("Getting: " + value[0] + ", " + + value[1] + ", " + value[2] + + ", " + value[3] + ", " + value[4] + ", " + value[5]); } } @@ -251,7 +251,7 @@ public class SwXTextTable extends TestCase { } }); - tEnv.addObjRelation("CONTENT", + tEnv.addObjRelation("CONTENT", (XTextContent) UnoRuntime.queryInterface( XTextContent.class, instance)); tEnv.addObjRelation("RANGE", xTextDoc.getText().createTextCursor()); |