tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / qadevOOo / tests / java / ifc / accessibility / _XAccessibleImage.java
blobc19b06850fd8b6c89273978212920d80e0e049f1
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.accessibility;
21 import lib.MultiMethodTest;
23 import com.sun.star.accessibility.XAccessibleImage;
25 /**
26 * Testing <code>com.sun.star.accessibility.XAccessibleImage</code>
27 * interface methods :
28 * <ul>
29 * <li><code>getAccessibleImageDescription()</code></li>
30 * <li><code>getAccessibleImageHeight()</code></li>
31 * <li><code>getAccessibleImageWidth()</code></li>
32 * </ul> <p>
33 * @see com.sun.star.accessibility.XAccessibleImage
35 public class _XAccessibleImage extends MultiMethodTest {
37 public XAccessibleImage oObj = null;
39 /**
40 * Just calls the method.
42 public void _getAccessibleImageDescription() {
43 String descr = oObj.getAccessibleImageDescription();
44 log.println("getAccessibleImageDescription(): '" + descr + "'");
45 tRes.tested("getAccessibleImageDescription()", descr != null);
48 /**
49 * Just calls the method.
51 public void _getAccessibleImageHeight() {
52 int height = oObj.getAccessibleImageHeight();
53 log.println("getAccessibleImageHeight(): " + height);
54 tRes.tested("getAccessibleImageHeight()", true);
57 /**
58 * Just calls the method.
60 public void _getAccessibleImageWidth() {
61 int width = oObj.getAccessibleImageWidth();
62 log.println("getAccessibleImageWidth(): " + width);
63 tRes.tested("getAccessibleImageWidth()", true);