Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests')
-rw-r--r--core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java
index f70cc8a3cdf..1ace88ff865 100644
--- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java
+++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java
@@ -695,7 +695,25 @@ public class CompletionTests extends AbstractContentAssistTest {
//#i/*cursor*/
public void testCompletePreprocessorDirective() throws Exception {
final String[] expected= {
- "#if", "#ifdef", "#ifndef", "#include"
+ "#if ", "#ifdef ", "#ifndef ", "#include "
+ };
+ assertCompletionResults(fCursorOffset, expected,
+ AbstractContentAssistTest.COMPARE_ID_STRINGS);
+ }
+
+ //# d/*cursor*/
+ public void testCompletePreprocessorDirective2() throws Exception {
+ final String[] expected= {
+ "define "
+ };
+ assertCompletionResults(fCursorOffset, expected,
+ AbstractContentAssistTest.COMPARE_REP_STRINGS);
+ }
+
+ //# if d/*cursor*/
+ public void testCompletePreprocessorDirective3() throws Exception {
+ final String[] expected= {
+ "defined"
};
assertCompletionResults(fCursorOffset, expected,
AbstractContentAssistTest.COMPARE_ID_STRINGS);

Back to the top