blob: ae6dce3400f758c36e94401ca759ebc2ff340890 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
package org.eclipse.swt.tests.junit;
/*
* (c) Copyright IBM Corp. 2000, 2002. All rights reserved.
* This file is made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*/
import org.eclipse.swt.widgets.*;
import junit.framework.*;
import junit.textui.*;
/**
* Automated Test Suite for class org.eclipse.swt.widgets.Scrollable
*
* @see org.eclipse.swt.widgets.Scrollable
*/
public class Test_org_eclipse_swt_widgets_Scrollable extends Test_org_eclipse_swt_widgets_Control {
Scrollable scrollable;
public Test_org_eclipse_swt_widgets_Scrollable(String name) {
super(name);
}
protected void setUp() {
super.setUp();
}
protected void tearDown() {
super.tearDown();
}
protected void setWidget(Widget w) {
scrollable = (Scrollable)w;
super.setWidget(w);
}
public void test_computeTrimIIII() {
scrollable.computeTrim(0, 0, 0, 0);
}
public void test_getClientArea() {
scrollable.getClientArea();
}
public void test_getHorizontalBar() {
ScrollBar hbar = scrollable.getHorizontalBar();
}
public void test_getVerticalBar() {
ScrollBar vbar = scrollable.getVerticalBar();
}
public static java.util.Vector methodNames() {
java.util.Vector methodNames = new java.util.Vector();
methodNames.addElement("test_computeTrimIIII");
methodNames.addElement("test_getClientArea");
methodNames.addElement("test_getHorizontalBar");
methodNames.addElement("test_getVerticalBar");
methodNames.addAll(Test_org_eclipse_swt_widgets_Control.methodNames()); // add superclass method names
return methodNames;
}
protected void runTest() throws Throwable {
if (getName().equals("test_computeTrimIIII")) test_computeTrimIIII();
else if (getName().equals("test_getClientArea")) test_getClientArea();
else if (getName().equals("test_getHorizontalBar")) test_getHorizontalBar();
else if (getName().equals("test_getVerticalBar")) test_getVerticalBar();
else super.runTest();
}
}
|