summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:53 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:53 +0200
commitb29a838b1cd9014c0951312f53ca6c0ebb9e1219 (patch)
treef951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java
parentb9bff9906e94ef3b1c8d6da779269122d39d8354 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit 868b90218854a32bdd0bbcc85aad838f198e40bb (tag: refs/tags/libreoffice-3.3.0.4, refs/remotes/origin/libreoffice-3-3-0) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:21 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit 7525320ca65ca0cf2ed5ec481d9f26638aed1b5c Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:38 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
Notes: split repo tag: testing_libreoffice-3.3.0.4
Diffstat (limited to 'qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java')
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java
index a721275ed684..d3efe367b0f4 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XSheetAuditing.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
@@ -54,7 +54,7 @@ public class _XSheetAuditing extends MultiMethodTest {
XCell xDependentAddress = null;
XDrawPage xDrawPage = null;
int elementCount = 0;
-
+
public void before() {
address = (CellAddress)tEnv.getObjRelation("XSheetAuditing.CellAddress");
precedentAddress = (CellAddress)tEnv.getObjRelation("XSheetAuditing.PrecedentCellAddress");
@@ -62,7 +62,7 @@ public class _XSheetAuditing extends MultiMethodTest {
if (address == null || precedentAddress == null || dependentAddress == null) {
throw new StatusException(Status.failed("Necessary CellAddress object relations not found."));
}
-
+
// get the draw page for checking the shapes
xDrawPage = (XDrawPage)tEnv.getObjRelation("XSheetAuditing.DrawPage");
if (xDrawPage == null) { // get from object
@@ -70,18 +70,18 @@ public class _XSheetAuditing extends MultiMethodTest {
UnoRuntime.queryInterface(XDrawPageSupplier.class, oObj);
xDrawPage = (XDrawPage) oDPS.getDrawPage();
}
- if (xDrawPage == null) {
+ if (xDrawPage == null) {
throw new StatusException(Status.failed("'XSheetAuditing.DrawPage' object relation not found."));
}
if (xDrawPage.hasElements()) {
elementCount = xDrawPage.getCount();
}
-
+
// get a sheet for changing the cells
XSpreadsheet xSheet = (XSpreadsheet)tEnv.getObjRelation("XSheetAuditing.Spreadsheet");
if (xSheet == null) // query on ther object
xSheet = (XSpreadsheet)UnoRuntime.queryInterface(XSpreadsheet.class, oObj);
- if (xSheet == null)
+ if (xSheet == null)
throw new StatusException(Status.failed("'XSheetAuditing.Spreadsheet' object relation not found."));
try {
xAddress = xSheet.getCellByPosition(address.Column, address.Row);
@@ -103,26 +103,26 @@ public class _XSheetAuditing extends MultiMethodTest {
erg &= hasRightAmountOfShapes(0);
tRes.tested("clearArrows()", erg);
}
-
+
public void _hideDependents() {
requiredMethod("showDependents()");
oObj.hideDependents(address);
tRes.tested("hideDependents()", hasRightAmountOfShapes(0));
}
-
+
public void _hidePrecedents() {
requiredMethod("showPrecedents()");
// requiredMethod("showPrecedents()");
oObj.hidePrecedents(address);
tRes.tested("hidePrecedents()", hasRightAmountOfShapes(0));
}
-
+
public void _showDependents() {
requiredMethod("hidePrecedents()");
oObj.showDependents(address);
tRes.tested("showDependents()", hasRightAmountOfShapes(1));
}
-
+
public void _showErrors() {
requiredMethod("clearArrows()");
// construct an error: square root from -3
@@ -138,7 +138,7 @@ public class _XSheetAuditing extends MultiMethodTest {
erg &= hasRightAmountOfShapes(2);
tRes.tested("showErrors()", erg);
}
-
+
public void _showInvalid() {
requiredMethod("showErrors()");
boolean result = true;
@@ -167,15 +167,15 @@ public class _XSheetAuditing extends MultiMethodTest {
e.printStackTrace((java.io.PrintWriter)log);
result = false;
}
-
+
tRes.tested("showInvalid()", result);
}
-
+
public void _showPrecedents() {
oObj.showPrecedents(address);
tRes.tested("showPrecedents()", hasRightAmountOfShapes(2));
}
-
+
/**
* Check if the amount of shapes is the right one after displaying that stuff
* 2do improve this: check taht the shapes are the correct ones -> convwatch