Skip to content

Commit a9b7ceb

Browse files
committed
Fixing review comments.
Fixes #184
1 parent 82aeac5 commit a9b7ceb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,10 +1293,14 @@ public void test_getLineCount() {
12931293
String text = "\rabc\ndef\r\rghi\n\njkl\r\nmno\r\n\r\npqr\r";
12941294
layout.setText(text);
12951295
int lineCount = layout.getLineCount();
1296+
System.out.println("lineCount : "+lineCount);
12961297
assertEquals(7, lineCount);
12971298

12981299
Rectangle bounds = layout.getBounds();
1299-
assertEquals(43, bounds.width);
1300+
System.out.println("bounds.width : "+bounds.width);
1301+
System.out.println("bounds.height : "+bounds.height);
1302+
assertEquals(layout.getBounds().toString(), 43, bounds.width);
1303+
//assertEquals(43, bounds.width);
13001304
assertEquals(140, bounds.height);
13011305
} finally {
13021306
layout.dispose();

0 commit comments

Comments
 (0)