From 75a2242cdd3e2f86ace882b0888539a54e4f681d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Porras=20Campo?= Date: Tue, 16 Dec 2025 14:24:30 +0100 Subject: [PATCH] build: enable DocumentLinkReconcilingTest.testClippedDocumentLinkReconciling --- .../test/documentLink/DocumentLinkReconcilingTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org.eclipse.lsp4e.test/src/org/eclipse/lsp4e/test/documentLink/DocumentLinkReconcilingTest.java b/org.eclipse.lsp4e.test/src/org/eclipse/lsp4e/test/documentLink/DocumentLinkReconcilingTest.java index c4a71959d..bb076d0eb 100644 --- a/org.eclipse.lsp4e.test/src/org/eclipse/lsp4e/test/documentLink/DocumentLinkReconcilingTest.java +++ b/org.eclipse.lsp4e.test/src/org/eclipse/lsp4e/test/documentLink/DocumentLinkReconcilingTest.java @@ -36,7 +36,6 @@ import org.eclipse.lsp4j.Range; import org.eclipse.swt.custom.StyleRange; import org.eclipse.swt.graphics.Color; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; public class DocumentLinkReconcilingTest extends AbstractTestWithProject { @@ -138,7 +137,6 @@ public void testFullDocumentLinkReconciling() throws Exception { } @Test - @Disabled("Test faling because of SWT Exception due to invalid ranges") public void testClippedDocumentLinkReconciling() throws Exception { MockLanguageServer.INSTANCE.setDocumentLinks(CONTENT_LINKS); @@ -172,7 +170,7 @@ public void testClippedDocumentLinkReconciling() throws Exception { var styles = viewer.getTextWidget().getStyleRanges(); - assertEquals(8, styles.length); + assertEquals(9, styles.length); pos = 0; len = 0; @@ -185,7 +183,8 @@ public void testClippedDocumentLinkReconciling() throws Exception { assertEquals(textStyle(pos += len, len = 1, COLOR_4TH_LINE), styles[5]); // new line char assertEquals(textStyle(pos += len, len = 9, COLOR_5TH_LINE), styles[6]); - assertEquals(linkStyle(pos += len, 12, COLOR_5TH_LINE), styles[7]); + assertEquals(linkStyle(pos += len, len = 12, COLOR_5TH_LINE), styles[7]); + assertEquals(linkStyle(pos += len, 11, COLOR_5TH_LINE), styles[8]); } @Test