Branch libreoffice-5-0-4
[LibreOffice.git] / qadevOOo / tests / java / ifc / view / _XScreenCursor.java
blob45510f593b0d73e5b94481a9aaaa59a39114b15b
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package ifc.view;
21 import lib.MultiMethodTest;
23 import com.sun.star.view.XScreenCursor;
26 /**
27 * Testing <code>com.sun.star.view.XScreenCursor</code>
28 * interface methods :
29 * <ul>
30 * <li><code> screenDown()</code></li>
31 * <li><code> screenUp()</code></li>
32 * </ul> <p>
34 * Uses test parameter <b><code>soapi.test.hidewindows</code></b>.
35 * Methods of this interface works with view representation,
36 * thereby their calls have no effect when document is opened
37 * in hidden mode. <p>
39 * Test is <b> NOT </b> multithread compliant. <p>
40 * @see com.sun.star.view.XScreenCursor
42 public class _XScreenCursor extends MultiMethodTest {
44 // oObj filled by MultiMethodTest
46 public XScreenCursor oObj = null;
48 /**
49 * Test calls the method. <p>
50 * Has <b> OK </b> status if the method returns
51 * <code>true</code> value or if document is
52 * opened in hidden mode.
54 public void _screenDown(){
55 log.println("test for screenDown() ");
56 tRes.tested("screenDown()", oObj.screenDown() );
59 /**
60 * Test calls the method. <p>
61 * Has <b> OK </b> status if the method returns
62 * <code>true</code> value or if document is
63 * opened in hidden mode.
64 * The following method tests are to be completed successfully before :
65 * <ul>
66 * <li> <code> screenDown() </code> : by default view is on the
67 * top of pag, thereby it's needed first to moved down. </li>
68 * </ul>
70 public void _screenUp(){
71 requiredMethod("screenDown()") ;
73 log.println("test for screenUp() ");
74 tRes.tested("screenUp()", oObj.screenUp() );
77 } // finish class _XScreenCursor