summaryrefslogtreecommitdiffstats
path: root/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
diff options
context:
space:
mode:
authorLynn Kues <lkues>2003-09-30 20:02:46 +0000
committerLynn Kues <lkues>2003-09-30 20:02:46 +0000
commitae1c23a4d2638dc5a7369e29ff8aaf58fabf2f0b (patch)
treebcbef741b4a2e73289321302236c8fbeb099ab9a /tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
parent3c6df677faab1f7d48b8a6abb267c9899b88bdb4 (diff)
downloadeclipse.platform.swt-ae1c23a4d2638dc5a7369e29ff8aaf58fabf2f0b.tar.gz
eclipse.platform.swt-ae1c23a4d2638dc5a7369e29ff8aaf58fabf2f0b.tar.xz
eclipse.platform.swt-ae1c23a4d2638dc5a7369e29ff8aaf58fabf2f0b.zip
43612
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
index fc2b538619..2996ae7c1b 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java
@@ -33,7 +33,7 @@ public static void main(String[] args) {
}
protected void setUp() {
- display = new Display();
+ display = Display.getDefault();
shell = new Shell(display);
shell.setBounds(0,30,240,290);
shell.open();
@@ -43,7 +43,6 @@ protected void setUp() {
protected void tearDown() {
gc.dispose();
shell.dispose();
- display.dispose();
}
public void test_ConstructorLorg_eclipse_swt_graphics_Drawable() {
@@ -329,6 +328,7 @@ public void test_isClipped() {
assertTrue(gc.isClipped());
GC testGC = new GC(shell);
assertFalse(testGC.isClipped());
+ testGC.dispose();
}
public void test_isDisposed() {