diff options
author | Felipe Heidrich <fheidric> | 2009-11-18 21:52:01 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-11-18 21:52:01 +0000 |
commit | 0002953e453f9d82d6f740f71444c247aa27b07c (patch) | |
tree | ad6c4d2e54919391ec6fc80d0335d44e8d9b14b5 /tests | |
parent | 1294a7f382e3a3d704fd0cae273f1fdc17162fef (diff) | |
download | eclipse.platform.swt-0002953e453f9d82d6f740f71444c247aa27b07c.tar.gz eclipse.platform.swt-0002953e453f9d82d6f740f71444c247aa27b07c.tar.xz eclipse.platform.swt-0002953e453f9d82d6f740f71444c247aa27b07c.zip |
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_TextLayout.java | 9 |
1 files changed, 9 insertions, 0 deletions
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 c8490999b4..13c068d6bd 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 @@ -60,6 +60,15 @@ public void test_getSegments() { assertEquals(m, 0, layout.getPreviousOffset(0, SWT.MOVEMENT_CLUSTER)); } + // Bug 295513 + layout.setText("Line"); + layout.setAscent(20); + layout.setDescent(6); + layout.setSegments(new int[] {0, layout.getText().length()}); + layout.getBounds(); + layout.dispose(); + layout = new TextLayout(display); + // Bug 241482 comment 74 layout.setText("word word word"); layout.setSegments(new int[] {0, 5, 10}); |