Skip to content

Commit

Permalink
Fixing review comments.
Browse files Browse the repository at this point in the history
Fixes #184
  • Loading branch information
deepika-u committed Dec 13, 2024
1 parent 84bdd1b commit 3dffa18
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3dffa18

Please sign in to comment.