diff options
author | Mickael Istria | 2019-07-02 11:39:19 +0000 |
---|---|---|
committer | Mickael Istria | 2019-07-02 12:01:41 +0000 |
commit | b1a591a215a78b2df6199130bf0512e2e1ae6998 (patch) | |
tree | d61783e94ed551cf8cb585ecdbe5d3c591d8e690 /org.eclipse.jface.text.tests | |
parent | 301800e75274f26d94d01da866550c188f0d8eb1 (diff) | |
download | eclipse.platform.text-b1a591a215a78b2df6199130bf0512e2e1ae6998.tar.gz eclipse.platform.text-b1a591a215a78b2df6199130bf0512e2e1ae6998.tar.xz eclipse.platform.text-b1a591a215a78b2df6199130bf0512e2e1ae6998.zip |
Bug 548732 - Fix LineContentBoundsDrawingTestI20190702-1800I20190702-0930
On Windows and Mac, there are shadows or borders printed on the widget,
so try to exclude them from the scanned area when looking for a color.
Change-Id: Icf445c775435fd5a1152b106de6ad247958f4926
Signed-off-by: Mickael Istria <mistria@redhat.com>
Diffstat (limited to 'org.eclipse.jface.text.tests')
-rw-r--r-- | org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java index 0fca4422ed4..f1606aac727 100644 --- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java +++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java @@ -155,7 +155,7 @@ public class LineContentBoundsDrawingTest { RGB backgroundRgb = widget.getBackground().getRGB(); ImageData imageData = image.getImageData(); for (int x = imageData.width - 50 /* magic number to avoid rulers and other */; x >= 0; x--) { - for (int y = 3 /* magic number as well to avoid title bar */; y < imageData.height; y++) { + for (int y = 3 /* magic number as well to avoid title bar */; y < imageData.height - 3; y++) { if (!imageData.palette.getRGB(imageData.getPixel(x, y)).equals(backgroundRgb)) { image.dispose(); return x; |