summaryrefslogtreecommitdiffstats
path: root/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2001-11-06 19:23:07 +0000
committerCarolyn MacLeod <carolyn>2001-11-06 19:23:07 +0000
commit635faf7df8b255a47fb036ddd76d34febc52406a (patch)
tree22cd097cf293603d0f1225713d47c59a076d2063 /tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java
parentf27a1273fe7c6ffb504004e2c6f8ef2e756f0ef3 (diff)
downloadeclipse.platform.swt-635faf7df8b255a47fb036ddd76d34febc52406a.tar.gz
eclipse.platform.swt-635faf7df8b255a47fb036ddd76d34febc52406a.tar.xz
eclipse.platform.swt-635faf7df8b255a47fb036ddd76d34febc52406a.zip
Initial
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java
new file mode 100644
index 0000000000..f161aa3ab9
--- /dev/null
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java
@@ -0,0 +1,70 @@
+package org.eclipse.swt.tests.junit;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+
+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();
+}
+}