Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-09-10 18:36:30 +0000
committerFelipe Heidrich2007-09-10 18:36:30 +0000
commit1fa5b3f8e58615ac2bc606ffced6367a1efd7d68 (patch)
tree166f717b60a845c399e2139f14f4ef78ebd61efe /tests/org.eclipse.swt.tests/JUnit Tests
parent5318778f257cff3df8b4175c52e39b7d4db4874b (diff)
downloadeclipse.platform.swt-1fa5b3f8e58615ac2bc606ffced6367a1efd7d68.tar.gz
eclipse.platform.swt-1fa5b3f8e58615ac2bc606ffced6367a1efd7d68.tar.xz
eclipse.platform.swt-1fa5b3f8e58615ac2bc606ffced6367a1efd7d68.zip
Bug 139647 - StyledText.getOffsetAtLocation can't return offset at end of a line
Diffstat (limited to 'tests/org.eclipse.swt.tests/JUnit Tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
index 597634d05d..c778f0a4fc 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java
@@ -1177,7 +1177,7 @@ public void test_getOffsetAtLocationLorg_eclipse_swt_graphics_Point() {
text.setText("Line0\r\nLine1");
location = text.getLocationAtOffset(5);
assertTrue(":d:", text.getOffsetAtLocation(new Point(10, 0)) > 0);
- assertTrue(":e:", text.getOffsetAtLocation(new Point(location.x - 1, 0)) == 4);
+ assertTrue(":e:", text.getOffsetAtLocation(new Point(location.x - 1, 0)) == 5);
location = text.getLocationAtOffset(7);
assertTrue(":f:", text.getOffsetAtLocation(location) == 7);
try {

Back to the top