From 3dffa1847158dcdcca50d5d110663934ae7022ce Mon Sep 17 00:00:00 2001 From: Deepika Udayagiri Date: Fri, 13 Dec 2024 14:47:51 +0530 Subject: [PATCH] Fixing review comments. Fixes #184 --- .../junit/Test_org_eclipse_swt_graphics_TextLayout.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java index c627b3948a..a10fe3107f 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java @@ -1293,10 +1293,14 @@ public void test_getLineCount() { String text = "\rabc\ndef\r\rghi\n\njkl\r\nmno\r\n\r\npqr\r"; layout.setText(text); int lineCount = layout.getLineCount(); + System.out.println("lineCount : "+lineCount); assertEquals(7, lineCount); Rectangle bounds = layout.getBounds(); - assertEquals(43, bounds.width); + System.out.println("bounds.width : "+bounds.width); + System.out.println("bounds.height : "+bounds.height); + assertEquals(layout.getBounds().toString(), 43, bounds.width); + //assertEquals(43, bounds.width); assertEquals(140, bounds.height); } finally { layout.dispose();