Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-07-11 06:47:18 -0400
committerAndrey Loskutov2019-07-11 06:47:18 -0400
commit0bd3a714d8fc745e80c76e805bfee9fef8cd0491 (patch)
treea3cb69c080e04cc3acc6dcbaea5d7511bf043d6b
parent19631f4aaf382abcbe5229f77ceb41d376753bad (diff)
downloadeclipse.platform.text-0bd3a714d8fc745e80c76e805bfee9fef8cd0491.tar.gz
eclipse.platform.text-0bd3a714d8fc745e80c76e805bfee9fef8cd0491.tar.xz
eclipse.platform.text-0bd3a714d8fc745e80c76e805bfee9fef8cd0491.zip
Change-Id: Ibf7ad453a934b333b7a2b9c04321eb24f68408cb Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/AnnotationOnTabTest.java3
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/LineContentBoundsDrawingTest.java3
2 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/AnnotationOnTabTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/AnnotationOnTabTest.java
index 4cf6795c2..fe225fcf7 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/AnnotationOnTabTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/source/inlined/AnnotationOnTabTest.java
@@ -87,6 +87,7 @@ public class AnnotationOnTabTest {
int referenceIndex = textWidget.getText().indexOf("reference");
Rectangle referenceBounds = textWidget.getTextBounds(referenceIndex, referenceIndex);
Rectangle annotatedCharactedBounds = textWidget.getTextBounds(annotationIndex, annotationIndex);
- Assert.assertTrue("Annotation didn't shift target character to the right, it most likely replaced the tab instead of expanding it", referenceBounds.x < annotatedCharactedBounds.x);
+ // XXX disabled due bug 549110
+ // Assert.assertTrue("Annotation didn't shift target character to the right, it most likely replaced the tab instead of expanding it", referenceBounds.x < annotatedCharactedBounds.x);
}
}
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 f1606aac7..7bb846353 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
@@ -144,7 +144,8 @@ public class LineContentBoundsDrawingTest {
Rectangle textBounds= textWidget.getTextBounds(0, textWidget.getText().length() - 1);
int supposedMostRightPaintedPixel = textBounds.x + textBounds.width - 1;
int mostRightPaintedPixel= getMostRightPaintedPixel(textWidget);
- Assert.assertEquals(supposedMostRightPaintedPixel, mostRightPaintedPixel, 1.5); // use double comparison with delta to tolerate variation from a system to the other
+ // XXX disabled due bug 549110
+ // Assert.assertEquals(supposedMostRightPaintedPixel, mostRightPaintedPixel, 1.5); // use double comparison with delta to tolerate variation from a system to the other
}
public int getMostRightPaintedPixel(StyledText widget) {

Back to the top