diff options
| author | Noopur Gupta | 2015-10-14 09:24:53 +0000 |
|---|---|---|
| committer | Noopur Gupta | 2015-11-02 08:29:30 +0000 |
| commit | b727c4c8f0e9596358fb8e0a8dc95e2eb4febeb8 (patch) | |
| tree | 7ec3cf9639c6e5cd6a574bc44841ae4f295fd948 | |
| parent | 53799c1e2c74278ac3b9c59deada59a1d69b810f (diff) | |
| download | eclipse.jdt.ui-b727c4c8f0e9596358fb8e0a8dc95e2eb4febeb8.tar.gz eclipse.jdt.ui-b727c4c8f0e9596358fb8e0a8dc95e2eb4febeb8.tar.xz eclipse.jdt.ui-b727c4c8f0e9596358fb8e0a8dc95e2eb4febeb8.zip | |
Bug 350000 - [content assist] Include non-prefix matches inI20151103-0800
auto-complete suggestions
Change-Id: I6e9dcc141698f36b6912277afcbd0f188436193d
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/MethodInsertCompletionTest.java b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/MethodInsertCompletionTest.java index b9d1bb7c6d..30a8f845af 100644 --- a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/MethodInsertCompletionTest.java +++ b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/MethodInsertCompletionTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2011 IBM Corporation and others. + * Copyright (c) 2005, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -85,7 +85,7 @@ public class MethodInsertCompletionTest extends AbstractCompletionTest { getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, true); getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_AUTOINSERT, true); addLocalVariables("Object o;"); - assertMethodBodyIncrementalCompletion("if (o instanceof Integer) o.g|", "if (o instanceof Integer) o.get|"); + assertMethodBodyIncrementalCompletion("if (o instanceof Integer) o.ge|", "if (o instanceof Integer) o.get|"); } /* camel case */ diff --git a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/TypeCompletionTest.java b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/TypeCompletionTest.java index 0c1ab087f0..fad3bd7c60 100644 --- a/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/TypeCompletionTest.java +++ b/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/contentassist/TypeCompletionTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2011 IBM Corporation and others. + * Copyright (c) 2005, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -203,7 +203,7 @@ public class TypeCompletionTest extends AbstractCompletionTest { getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, true); getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_AUTOINSERT, true); - assertMethodBodyIncrementalCompletion("Strin|", "String|"); + assertMethodBodyIncrementalCompletion("Inval|", "Invalid|"); } public void testNoIncrementalInsertion() throws Exception { @@ -217,14 +217,14 @@ public class TypeCompletionTest extends AbstractCompletionTest { getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, true); getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_AUTOINSERT, true); - assertMethodBodyIncrementalCompletion("StRiN|", "String|"); + assertMethodBodyIncrementalCompletion("InVa|", "Invalid|"); } public void testNoIncrementalInsertionPrefixCorrection() throws Exception { getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_PREFIX_COMPLETION, true); getJDTUIPrefs().setValue(PreferenceConstants.CODEASSIST_AUTOINSERT, true); - assertMethodBodyIncrementalCompletion("StRiNg|", "String|"); + assertMethodBodyIncrementalCompletion("InVaLiD|", "Invalid|"); } public void testNoIncrementalInsertionCamelCase() throws Exception { |
