Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-03-05 13:42:02 +0000
committerAnton Leherbauer2008-03-05 13:42:02 +0000
commitbb5cead81a481be877fb0e9ea0711b36b82effe0 (patch)
tree0bf79e8bc0d96f9d1be0e0abaddcd41ce435bb3b /core/org.eclipse.cdt.ui.tests
parent4aa0c4245aa611defc1ba9359e398b728a79137a (diff)
downloadorg.eclipse.cdt-bb5cead81a481be877fb0e9ea0711b36b82effe0.tar.gz
org.eclipse.cdt-bb5cead81a481be877fb0e9ea0711b36b82effe0.tar.xz
org.eclipse.cdt-bb5cead81a481be877fb0e9ea0711b36b82effe0.zip
Minor improvements for content assist in preprocessor directives
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