Skip to content

Commit f50e201

Browse files
committed
disable test_caretSizeAndPositionVariableGlyphMetrics #294
1 parent 5c3aa38 commit f50e201

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4870,9 +4870,6 @@ public void test_clickUpdatesCaretPosition() {
48704870

48714871
@Test
48724872
public void test_caretSizeAndPositionVariableGlyphMetrics() {
4873-
// See https://github.com/eclipse-platform/eclipse.platform.swt/issues/294
4874-
assumeFalse("Test doesn't work on Linux docker image in jenkins PR validation build",
4875-
SwtTestUtil.isLinux && Boolean.parseBoolean(System.getenv("PR_VALIDATION_BUILD")));
48764873
text.setText("abcd");
48774874
text.setMargins(2, 0, 0, 0); // keep leftMargin as it affects behavior
48784875
text.setLineSpacing(0);
@@ -4881,6 +4878,8 @@ public void test_caretSizeAndPositionVariableGlyphMetrics() {
48814878
text.setStyleRange(range);
48824879
text.setCaretOffset(0);
48834880
assertEquals(text.getLineHeight(), text.getCaret().getSize().y);
4881+
// See https://github.com/eclipse-platform/eclipse.platform.swt/issues/294
4882+
assumeFalse("Test fails on Linux: expected:<87> but was:<174>", SwtTestUtil.isLinux);
48844883
// +5: caret takes 5 more pixels
48854884
assertEquals(text.getLineHeight(0) - text.getCaret().getSize().y, text.getCaret().getBounds().y);
48864885
text.setCaretOffset(1);

0 commit comments

Comments
 (0)