diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/frame')
28 files changed, 157 insertions, 157 deletions
diff --git a/qadevOOo/tests/java/ifc/frame/_Desktop.java b/qadevOOo/tests/java/ifc/frame/_Desktop.java index 1e608f73fe8d..f930c5396974 100644 --- a/qadevOOo/tests/java/ifc/frame/_Desktop.java +++ b/qadevOOo/tests/java/ifc/frame/_Desktop.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 diff --git a/qadevOOo/tests/java/ifc/frame/_Frame.java b/qadevOOo/tests/java/ifc/frame/_Frame.java index a389bb17d242..34787b5c5c72 100644 --- a/qadevOOo/tests/java/ifc/frame/_Frame.java +++ b/qadevOOo/tests/java/ifc/frame/_Frame.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 diff --git a/qadevOOo/tests/java/ifc/frame/_FrameLoader.java b/qadevOOo/tests/java/ifc/frame/_FrameLoader.java index 06ffd1c4b358..e55ec835a8b9 100644 --- a/qadevOOo/tests/java/ifc/frame/_FrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_FrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java index 259cd21d9afa..7d011edd59c1 100644 --- a/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_SynchronousFrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java b/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java index 39e7a0b9bb49..0149b8682800 100644 --- a/qadevOOo/tests/java/ifc/frame/_XComponentLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XComponentLoader.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 @@ -62,7 +62,7 @@ public class _XComponentLoader extends MultiMethodTest { PropertyValue [] szEmptyArgs = new PropertyValue [0]; String frameName = "_blank"; XComponent oDoc = null; - + log.println("load writer doc that contains links"); PropertyValue [] szArgs = new PropertyValue [1]; PropertyValue Arg = new PropertyValue(); @@ -73,30 +73,30 @@ public class _XComponentLoader extends MultiMethodTest { log.println("try to load '" + url + "'"); oDoc = oObj.loadComponentFromURL( url, frameName, 0, szArgs); - - try { + + try { Thread.sleep(500); } catch (InterruptedException ex) { - } - + } + oDoc.dispose(); - + url = util.utils.getFullTestURL("Calc_Link.sxc"); log.println("try to load '" + url + "'"); oDoc = oObj.loadComponentFromURL( url, frameName, 0, szArgs); - - try { + + try { Thread.sleep(500); } catch (InterruptedException ex) { - } - - oDoc.dispose(); - - - + } + + oDoc.dispose(); + + + log.println("load a blank impress doc"); Arg.Name = "OpenFlags"; Arg.Value = "S"; diff --git a/qadevOOo/tests/java/ifc/frame/_XController.java b/qadevOOo/tests/java/ifc/frame/_XController.java index dd2afe4ca825..7105622ef893 100644 --- a/qadevOOo/tests/java/ifc/frame/_XController.java +++ b/qadevOOo/tests/java/ifc/frame/_XController.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDesktop.java b/qadevOOo/tests/java/ifc/frame/_XDesktop.java index 996cc5af1ae9..a3e99723870c 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDesktop.java +++ b/qadevOOo/tests/java/ifc/frame/_XDesktop.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatch.java b/qadevOOo/tests/java/ifc/frame/_XDispatch.java index 6fad036bec57..3f760dded161 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatch.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatch.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 @@ -120,8 +120,8 @@ public class _XDispatch extends MultiMethodTest { TestNotificationListener notificationListener = null; URL url = null ; - /** - * Not all implementations could call the + /** + * Not all implementations could call the * <code>com.sun.star.frame.XStatusListener</code>. For this purposes the * <code>com.sun.star.frame.XDispatchWithNotification</code> was designed. * If <code>com.sun.star.frame.XStatusListener</code> was not called and @@ -130,13 +130,13 @@ public class _XDispatch extends MultiMethodTest { */ private boolean checkXDispatchWithNotification() { - XNotifyingDispatch xND = (XNotifyingDispatch) + XNotifyingDispatch xND = (XNotifyingDispatch) UnoRuntime.queryInterface(XNotifyingDispatch.class, oObj); if ( xND != null) { log.println(" XNotifyingDispatch found:"); - PropertyValue[] arguments = (PropertyValue[]) + PropertyValue[] arguments = (PropertyValue[]) tEnv.getObjRelation("XNotifyingDispatchArgument"); - + notificationListener = new TestNotificationListener(log) ; xND.dispatchWithNotification(url, arguments, notificationListener); @@ -151,7 +151,7 @@ public class _XDispatch extends MultiMethodTest { } else { return false; } - + } /** * Retrieves object relations and creates new listeners. @@ -189,9 +189,9 @@ public class _XDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} log.println("Listener called: "+ listener.statusChangedCalled); - + result = listener.statusChangedCalled; - + if (result == false) { result = checkXDispatchWithNotification(); } @@ -234,9 +234,9 @@ public class _XDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} System.out.println("Listener called: "+ listener.statusChangedCalled); - + result = ! listener.statusChangedCalled; - + tRes.tested("removeStatusListener()", result) ; } } diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java b/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java index d3091201070d..39f4849eda95 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchProvider.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java b/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java index 549731315d7c..5455ab227e5d 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchProviderInterception.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java index 0b1cd3afd430..b6e73a80d246 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorder.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 @@ -70,18 +70,18 @@ public class _XDispatchRecorder extends MultiMethodTest { } public void _startRecording() { - + oObj.startRecording(xFrame); oObj.endRecording(); tRes.tested("startRecording()", true); } public void _getRecordedMacro() { - + clearBuffer(); - + oObj.startRecording(xFrame); - + log.println("dispatch calles via API must be recorded"); dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); @@ -109,12 +109,12 @@ public class _XDispatchRecorder extends MultiMethodTest { && macro.indexOf(dispURL.Complete) > -1; if (!res) log.println("Dispatch URL '" + dispURL.Complete + "' was NOT found in macro - FAILED"); - + tRes.tested("getRecordedMacro()", res); } public void _endRecording() { - + oObj.startRecording(xFrame); oObj.endRecording(); String macro = oObj.getRecordedMacro(); @@ -124,16 +124,16 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); res = false; } - + tRes.tested("endRecording()", res); } public void _recordDispatch() { clearBuffer(); - + oObj.startRecording(xFrame); - // positve test + // positve test dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); PropertyValue prop = new PropertyValue(); @@ -149,7 +149,7 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); oObj.endRecording(); - + boolean res = macro != null && macro.indexOf(dispURL.Complete) > -1 && macro.indexOf((String)dispArgs[0].Value) > -1; @@ -162,9 +162,9 @@ public class _XDispatchRecorder extends MultiMethodTest { public void _recordDispatchAsComment() { clearBuffer(); - + oObj.startRecording(xFrame); - + dispURL = utils.parseURL((XMultiServiceFactory)tParam.getMSF(), ".uno:InsertText"); PropertyValue prop = new PropertyValue(); @@ -178,7 +178,7 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println("Getting macro ... :"); String macro = oObj.getRecordedMacro(); log.println(macro); - + oObj.endRecording(); boolean res = macro != null @@ -204,13 +204,13 @@ public class _XDispatchRecorder extends MultiMethodTest { tRes.tested("recordDispatchAsComment()", res); } - + private void shortWait() { try { Thread.sleep(500); } catch (InterruptedException ex) {} } - + private void clearBuffer() { oObj.startRecording(xFrame); oObj.endRecording(); @@ -220,5 +220,5 @@ public class _XDispatchRecorder extends MultiMethodTest { log.println(macro); } } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java index b6c1f06c5a7e..f89edf56426a 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XDispatchRecorderSupplier.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 @@ -194,7 +194,7 @@ public class _XDispatchRecorderSupplier extends MultiMethodTest { UnoRuntime.queryInterface(XDispatchProvider.class, fr); URL dispURL = utils.parseURL((XMultiServiceFactory) tParam.getMSF(), ".uno:InsertText"); - + XDispatch xDisp = xDispProv.queryDispatch(dispURL,"",0); PropertyValue[] args = new PropertyValue[1]; diff --git a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java index 5bd47fa83904..7aee5f6eb47e 100644 --- a/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.java +++ b/qadevOOo/tests/java/ifc/frame/_XDocumentTemplates.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XFrame.java b/qadevOOo/tests/java/ifc/frame/_XFrame.java index aaf59e61ee59..12beaccc011a 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrame.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrame.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 @@ -290,7 +290,7 @@ public class _XFrame extends MultiMethodTest { boolean result = true; XWindow win = oObj.getComponentWindow() ; - + if (tEnv.getTestCase().getObjectName().equals("Desktop")) { log.println("Desktop has no component window"); tRes.tested("getComponentWindow()", true) ; @@ -503,7 +503,7 @@ public class _XFrame extends MultiMethodTest { requiredMethod("setCreator()") ; boolean result = true; - + XWindow oldWindow = oObj.getComponentWindow(); XController oldController = oObj.getController(); boolean rs = oObj.setComponent(null, null); @@ -527,10 +527,10 @@ public class _XFrame extends MultiMethodTest { /** * Test calls the method. <p> * Has <b> OK </b> status if the method successfully returns. - * In case a frame should initialised twice, a + * In case a frame should initialised twice, a * <CODE>com.sun.star.uno.RuntimeException</CODE> was thron. This is ok. But since * a com.sun.star.uno.RuntimeException could thrown in any state the message of - * the exception must contain a defined string. In this case the test get an + * the exception must contain a defined string. In this case the test get an * <CODE>OK</CODE> status. * The following method tests are to be completed successfully before : * <ul> @@ -553,7 +553,7 @@ public class _XFrame extends MultiMethodTest { log.println(e.toString()); bOK=false; } - + } tRes.tested("initialize()", bOK) ; } @@ -573,7 +573,7 @@ public class _XFrame extends MultiMethodTest { return false; } } - + /** * Forces environment recreation. */ diff --git a/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java b/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java index b95e438972ac..bf74de351059 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrameActionListener.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 @@ -32,10 +32,10 @@ import com.sun.star.frame.XFrameActionListener; import lib.MultiMethodTest; public class _XFrameActionListener extends MultiMethodTest { - + public XFrameActionListener oObj = null; - + public void _frameAction() { FrameActionEvent event = new FrameActionEvent(); oObj.frameAction(event); diff --git a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java index a914d3e711b9..f386667de545 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XFrameLoader.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java b/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java index bd6bcd7a4f86..ffb34939a793 100644 --- a/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XFramesSupplier.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 @@ -172,7 +172,7 @@ public class _XFramesSupplier extends MultiMethodTest { new Type(XFrame.class),frames.getByIndex(0)); } catch (com.sun.star.lang.IllegalArgumentException iae) { log.println("Can't convert any"); - } + } else try { sFrame = (XFrame) AnyConverter.toObject( diff --git a/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java index 2d644d2b2391..74d9e42efa55 100644 --- a/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.java +++ b/qadevOOo/tests/java/ifc/frame/_XInplaceLayout.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 @@ -39,7 +39,7 @@ public class _XInplaceLayout extends MultiMethodTest { // oObj.setInplaceMenuBar(l); tRes.tested("setInplaceMenuBar()", true); } - + public void _resetInplaceMenuBar() { requiredMethod("setInplaceMenuBar()"); oObj.resetInplaceMenuBar(); diff --git a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java index 34fd55182e92..24ef9d4eee12 100644 --- a/qadevOOo/tests/java/ifc/frame/_XLayoutManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XLayoutManager.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 @@ -39,14 +39,14 @@ import util.utils; public class _XLayoutManager extends MultiMethodTest { public XLayoutManager oObj = null; - + private XFrame xFrame = null; private String sElementName = "private:resource/menubar/myMenu"; - + public void before() { xFrame = (XFrame)tEnv.getObjRelation("XLayoutManager.Frame"); } - + public void _attachFrame() { oObj.attachFrame(xFrame); tRes.tested("attachFrame()", true); @@ -57,19 +57,19 @@ public class _XLayoutManager extends MultiMethodTest { oObj.createElement(sElementName); tRes.tested("createElement()", true); } - + public void _destroyElement() { requiredMethod("getElement()"); requiredMethod("getElements()"); oObj.destroyElement(sElementName); tRes.tested("destroyElement()", true); } - + public void _doLayout() { oObj.doLayout(); tRes.tested("doLayout()", true); } - + public void _dockWindow() { requiredMethod("createElement()"); Point p = new Point(); @@ -78,35 +78,35 @@ public class _XLayoutManager extends MultiMethodTest { oObj.dockWindow(sElementName, DockingArea.DOCKINGAREA_TOP, p); tRes.tested("dockWindow()", true); } - + public void _floatWindow() { requiredMethod("createElement()"); oObj.floatWindow(sElementName); tRes.tested("floatWindow()", true); } - + public void _getCurrentDockingArea() { requiredMethod("attachFrame()"); Rectangle rect = oObj.getCurrentDockingArea(); tRes.tested("getCurrentDockingArea()", rect != null); } - + public void _getElement() { requiredMethod("createElement()"); XUIElement xElement = oObj.getElement(sElementName); tRes.tested("getElement()", true); } - + public void _getElementPos() { Point p = oObj.getElementPos(sElementName); tRes.tested("getElementPos()", p != null); } - + public void _getElementSize() { Size s = oObj.getElementSize(sElementName); tRes.tested("getElementSize()", s != null); } - + public void _getElements() { requiredMethod("createElement()"); XUIElement[] xElements = oObj.getElements(); @@ -116,42 +116,42 @@ public class _XLayoutManager extends MultiMethodTest { } tRes.tested("getElements()", xElements != null); } - + public void _hideElement() { boolean hidden = oObj.hideElement(sElementName); tRes.tested("hideElement()", true); } - + public void _isElementDocked() { boolean docked = oObj.isElementDocked(sElementName); tRes.tested("isElementDocked()", true); } - + public void _isElementFloating() { boolean docked = oObj.isElementFloating(sElementName); tRes.tested("isElementFloating()", true); } - + public void _isElementVisible() { boolean docked = oObj.isElementVisible(sElementName); tRes.tested("isElementVisible()", true); } - + public void _lock() { oObj.lock(); tRes.tested("lock()", true); } - + public void _reset() { oObj.reset(); tRes.tested("reset()", true); } - + public void _setDockingAreaAcceptor() { oObj.setDockingAreaAcceptor(null); tRes.tested("setDockingAreaAcceptor()", true); } - + public void _setElementPos() { requiredMethod("createElement()"); Point p = new Point(); @@ -160,7 +160,7 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementPos(sElementName, p); tRes.tested("setElementPos()", true); } - + public void _setElementPosSize() { requiredMethod("createElement()"); Point p = new Point(); @@ -172,7 +172,7 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementPosSize(sElementName, p, size); tRes.tested("setElementPosSize()", true); } - + public void _setElementSize() { requiredMethod("createElement()"); Size size = new Size(); @@ -181,18 +181,18 @@ public class _XLayoutManager extends MultiMethodTest { oObj.setElementSize(sElementName, size); tRes.tested("setElementSize()", true); } - + public void _showElement() { requiredMethod("createElement()"); boolean shown = oObj.showElement(sElementName); tRes.tested("showElement()", true); } - + public void _unlock() { requiredMethod("lock()"); oObj.unlock(); tRes.tested("unlock()", true); } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XModel.java b/qadevOOo/tests/java/ifc/frame/_XModel.java index 6fa133e28780..4cc92fbe553b 100644 --- a/qadevOOo/tests/java/ifc/frame/_XModel.java +++ b/qadevOOo/tests/java/ifc/frame/_XModel.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java b/qadevOOo/tests/java/ifc/frame/_XModuleManager.java index 375500f89bb6..e542b249266b 100755 --- a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XModuleManager.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 @@ -70,7 +70,7 @@ public class _XModuleManager extends MultiMethodTest { * coresponding value.<p> * As enhancement the method <CODE>identify()</CODE> was called with incvalid * parameter. In this case the thrown exceptions was catched. - */ + */ public XModuleManager oObj = null; /** * Test calls the method. <p> @@ -82,35 +82,35 @@ public class _XModuleManager extends MultiMethodTest { * relation 'Frame' </li> * </ul> */ - + private PropertyValue[] xFrameSeq = null; private PropertyValue[] xControllerSeq = null; private PropertyValue[] xModelSeq = null; /** Retrieves object relations. */ - + public void before() { - + xFrameSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XFrame") ; if (xFrameSeq == null) throw new StatusException (Status.failed("Relation 'xFrameSeq' not found.")) ; - - + + xControllerSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XController") ; if (xControllerSeq == null) throw new StatusException (Status.failed("Relation 'xControllerSeq' not found.")) ; - - + + xModelSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XModel") ; if (xModelSeq == null) throw new StatusException (Status.failed("Relation 'xModelSeq' not found.")) ; } - + /** The method <CODE>identify()</CODE> was tesed for every entry in sequeze of * object relations. - */ + */ public void _identify() { boolean ok = true; log.println("testing frame sequenze..."); @@ -130,7 +130,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("expected exception."); } } - + private boolean testSequenze(PropertyValue[] sequenze){ boolean ok = true; for (int i = 0 ; i < sequenze.length; i++){ @@ -138,10 +138,10 @@ public class _XModuleManager extends MultiMethodTest { log.println("testing '" + sequenze[i].Name + "'"); if (oObj.identify(sequenze[i].Value).equals( sequenze[i].Name)){ - ok &= ok; + ok &= ok; }else{ - log.println("failure: returned value: '" + - oObj.identify(sequenze[i].Value) + + log.println("failure: returned value: '" + + oObj.identify(sequenze[i].Value) + "' ,expected value: '" + sequenze[i].Name + "'"); ok = false; } @@ -149,7 +149,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("Could not get value of sequenze '" + sequenze[i].Name + "'"); return false; - + } catch (UnknownModuleException e){ log.println("Could not indetify value of sequenze '" + sequenze[i].Name + "'"); @@ -158,6 +158,6 @@ public class _XModuleManager extends MultiMethodTest { } return ok; } - + } diff --git a/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java b/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java index 8402aac41db2..096408a55e31 100644 --- a/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.java +++ b/qadevOOo/tests/java/ifc/frame/_XNotifyingDispatch.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 @@ -46,7 +46,7 @@ import com.sun.star.frame.DispatchResultEvent; * <ul> * <li> <code>'XDispatch.URL'</code> (of type <code>com.sun.star.util.URL * </code>): URL for passing to <code>dispatch()</code> method. </li> -* <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code> +* <li> <code>[OPTIONAL] 'XNotifyingDispatchArgument'</code> * (of type sequence<code>com::sun::star::beans::PropertyValue * </code>): argumets for <code>dispatchWithNotification()</code> method. </li> * <ul> <p> @@ -98,8 +98,8 @@ public class _XNotifyingDispatch extends MultiMethodTest { if (url == null) throw new StatusException (Status.failed("Relation not found.")) ; - - arguments = (PropertyValue[]) + + arguments = (PropertyValue[]) tEnv.getObjRelation("XNotifyingDispatchArgument"); } @@ -120,9 +120,9 @@ public class _XNotifyingDispatch extends MultiMethodTest { catch(java.lang.InterruptedException e) {} log.println("Listener called: "+ notificationListener.finishedDispatch); - + result = notificationListener.finishedDispatch; - + tRes.tested("dispatchWithNotification()", result) ; } diff --git a/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java b/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java index f057e64824c5..d53acd11e290 100644 --- a/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.java +++ b/qadevOOo/tests/java/ifc/frame/_XPopupMenuController.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 @@ -35,103 +35,103 @@ public class _XPopupMenuController extends MultiMethodTest { public XPopupMenuController oObj = null; public void before() { - + } - + public void _setPopupMenu() { XPopupMenu xMenu = new PopupMenuImpl(); oObj.setPopupMenu(xMenu); tRes.tested("setPopupMenu()", true); } - + public void _updatePopupMenu() { oObj.updatePopupMenu(); tRes.tested("updatePopupMenu()", true); } - + private class PopupMenuImpl implements XPopupMenu { - + public void addMenuListener(com.sun.star.awt.XMenuListener xMenuListener) { System.out.println("addMenuListener called."); } - + public void checkItem(short param, boolean param1) { System.out.println("checkItemListener called."); } - + public void enableItem(short param, boolean param1) { System.out.println("enableItem called."); } - + public short execute(com.sun.star.awt.XWindowPeer xWindowPeer, com.sun.star.awt.Rectangle rectangle, short param) { System.out.println("execute called."); return 0; } - + public short getDefaultItem() { System.out.println("getDefaultItem called."); return 0; } - + public short getItemCount() { System.out.println("getItemCount called."); return 0; } - + public short getItemId(short param) { System.out.println("getItemId called."); return 0; } - + public short getItemPos(short param) { System.out.println("getItemPos called."); return 0; } - + public String getItemText(short param) { System.out.println("getItemText called."); return "Hi."; } - + public com.sun.star.awt.XPopupMenu getPopupMenu(short param) { System.out.println("getPopupMenu called."); return this; } - + public void insertItem(short param, String str, short param2, short param3) { System.out.println("insertItem called."); } - + public void insertSeparator(short param) { System.out.println("insertSeparator called."); } - + public boolean isItemChecked(short param) { System.out.println("isItemChecked called."); return false; } - + public boolean isItemEnabled(short param) { System.out.println("isItemEnabled called."); return false; } - + public void removeItem(short param, short param1) { System.out.println("removeItem called."); } - + public void removeMenuListener(com.sun.star.awt.XMenuListener xMenuListener) { System.out.println("removeMenuListener called."); } - + public void setDefaultItem(short param) { System.out.println("setDefaultItem called."); } - + public void setItemText(short param, String str) { System.out.println("setItemText called."); } - + public void setPopupMenu(short param, com.sun.star.awt.XPopupMenu xPopupMenu) { System.out.println("setPopupMenu called."); } diff --git a/qadevOOo/tests/java/ifc/frame/_XStatusListener.java b/qadevOOo/tests/java/ifc/frame/_XStatusListener.java index 23f71df14e78..4b08c23e320f 100644 --- a/qadevOOo/tests/java/ifc/frame/_XStatusListener.java +++ b/qadevOOo/tests/java/ifc/frame/_XStatusListener.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 @@ -34,11 +34,11 @@ import lib.MultiMethodTest; public class _XStatusListener extends MultiMethodTest { public XStatusListener oObj = null; - + public void before() { - + } - + public void _statusChanged() { FeatureStateEvent event = new FeatureStateEvent(); oObj.statusChanged(event); diff --git a/qadevOOo/tests/java/ifc/frame/_XStorable.java b/qadevOOo/tests/java/ifc/frame/_XStorable.java index 4edc1eb45e54..416065db5e4e 100644 --- a/qadevOOo/tests/java/ifc/frame/_XStorable.java +++ b/qadevOOo/tests/java/ifc/frame/_XStorable.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java index 2f430afa6e39..0fd36904c26c 100644 --- a/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.java +++ b/qadevOOo/tests/java/ifc/frame/_XSynchronousFrameLoader.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 @@ -129,7 +129,7 @@ public class _XSynchronousFrameLoader extends MultiMethodTest { descr[0].Name = "URL" ; descr[0].Value = urlS[0] ; } - + /** * Tries to load component to a frame. <p> diff --git a/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java b/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java index c6702fd9dec1..18c2997e304b 100644 --- a/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.java +++ b/qadevOOo/tests/java/ifc/frame/_XTasksSupplier.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 diff --git a/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java b/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java index 34441e23e36d..595acf8fc7c8 100644 --- a/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.java +++ b/qadevOOo/tests/java/ifc/frame/_XUIControllerRegistration.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 @@ -38,20 +38,20 @@ public class _XUIControllerRegistration extends MultiMethodTest { public void before() { aRegisteredController = (String)tEnv.getObjRelation("XUIControllerRegistration.RegisteredController"); } - - + + public void _registerController() { oObj.registerController(aController, "", "com.sun.star.comp.framework.FooterMenuController"); oObj.registerController(aRegisteredController, "", "com.sun.star.comp.framework.HeaderMenuController"); tRes.tested("registerController()", true); } - + public void _deregisterController() { requiredMethod("registerController()"); oObj.deregisterController(aController, ""); tRes.tested("deregisterController()", true); } - + public void _hasController() { requiredMethod("registerController()"); requiredMethod("deregisterController()"); @@ -59,5 +59,5 @@ public class _XUIControllerRegistration extends MultiMethodTest { res &= !oObj.hasController(aController, ""); tRes.tested("hasController()", res); } - + } |