You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests.win32/JUnit Tests/org/eclipse/swt/tests/win32/Test_org_eclipse_swt_dnd_DND.java
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,9 @@
36
36
importorg.eclipse.swt.dnd.Transfer;
37
37
importorg.eclipse.swt.dnd.URLTransfer;
38
38
importorg.eclipse.swt.graphics.Color;
39
-
importorg.eclipse.swt.graphics.GC;
40
39
importorg.eclipse.swt.graphics.Image;
41
40
importorg.eclipse.swt.graphics.ImageData;
41
+
importorg.eclipse.swt.graphics.ImageGcDrawer;
42
42
importorg.eclipse.swt.graphics.PaletteData;
43
43
importorg.eclipse.swt.graphics.Point;
44
44
importorg.eclipse.swt.layout.RowLayout;
@@ -239,18 +239,17 @@ public void testUrlTransfer() throws InterruptedException {
239
239
* Creates a DDB test image with a uniform color applied to all pixels.
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java
+51-44Lines changed: 51 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -208,16 +208,17 @@ public void test_ConstructorLorg_eclipse_swt_graphics_DeviceLorg_eclipse_swt_gra
208
208
data = newImageData(10, 10, 8, newPaletteData(0x30, 0x0C, 0x03));
assertEquals(":a: Size of ImageData returned from Image.getImageData(int) method doesn't return matches with bounds in Pixel values.", scaleBounds(bounds, zoom, 100), boundsAtZoom);
723
726
727
+
// creates bitmap image with GCDrawer and compare size of imageData
assertEquals(":a: Size of ImageData returned from Image.getImageData(int) method doesn't return matches with bounds in Pixel values.", scaleBounds(bounds, zoom, 100), boundsAtZoom);
733
+
724
734
// create icon image and compare size of imageData
Copy file name to clipboardExpand all lines: tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java
+19-27Lines changed: 19 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@
26
26
importorg.eclipse.swt.SWT;
27
27
importorg.eclipse.swt.graphics.Color;
28
28
importorg.eclipse.swt.graphics.Font;
29
-
importorg.eclipse.swt.graphics.GC;
30
29
importorg.eclipse.swt.graphics.Image;
30
+
importorg.eclipse.swt.graphics.ImageGcDrawer;
31
31
importorg.eclipse.swt.graphics.Point;
32
32
importorg.eclipse.swt.graphics.Rectangle;
33
33
importorg.eclipse.swt.graphics.TextLayout;
@@ -938,17 +938,9 @@ public void test_getTextDirection() {
938
938
publicvoidtest_bug568740_multilineTextStyle() {
939
939
Fontfont = null;
940
940
Imageimage = null;
941
-
GCgc = null;
942
-
TextLayoutlayout = null;
941
+
finalTextLayoutlayout = newTextLayout(display);
942
+
intoffset = 10;
943
943
try {
944
-
font = newFont(display, SwtTestUtil.testFontName, 16, SWT.NORMAL);
0 commit comments