Lines 1129-1132
Link Here
|
1129 |
"field[FIELD_REF]{field, Lbugs.b171016.BasicTestBugs;, I, field, null, "+this.positions+R_DRICNRNS+"}" |
1129 |
"field[FIELD_REF]{field, Lbugs.b171016.BasicTestBugs;, I, field, null, "+this.positions+R_DRICNRNS+"}" |
1130 |
); |
1130 |
); |
1131 |
} |
1131 |
} |
|
|
1132 |
/** |
1133 |
* @bug 255752 [javadoc][assist] Inappropriate completion proposals for javadoc at compilation unit level |
1134 |
* @test that there are no tag completions offered at the compilation unit level for a non package-info.java |
1135 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=255752" |
1136 |
*/ |
1137 |
public void testBug255752() throws JavaModelException { |
1138 |
String source = |
1139 |
"/**\n" + |
1140 |
" *\n" + |
1141 |
" * @\n" + |
1142 |
" */" + |
1143 |
"package javadoc.bugs;\n" + |
1144 |
"public class BasicTestBugs {}\n"; |
1145 |
completeInJavadoc("/Completion/src/javadoc/bugs/BasicTestBugs.java", source, true, "@", -1); |
1146 |
assertSortedResults(""); |
1147 |
} |
1148 |
/** |
1149 |
* Additional tests for bug 255752 |
1150 |
* @test whether an orphan Javadoc comment gets all the possible tags applicable to the class level. |
1151 |
*/ |
1152 |
public void testBug255752a() throws JavaModelException { |
1153 |
String source = |
1154 |
"/**\n" + |
1155 |
" *\n" + |
1156 |
" * @\n" + |
1157 |
" */" + |
1158 |
"\n"; |
1159 |
completeInJavadoc("/Completion/src/javadoc/bugs/BasicTestBugs.java", source, true, "@", -1); |
1160 |
assertResults( |
1161 |
"author[JAVADOC_BLOCK_TAG]{@author, null, null, author, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1162 |
"deprecated[JAVADOC_BLOCK_TAG]{@deprecated, null, null, deprecated, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1163 |
"see[JAVADOC_BLOCK_TAG]{@see, null, null, see, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1164 |
"version[JAVADOC_BLOCK_TAG]{@version, null, null, version, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1165 |
"category[JAVADOC_BLOCK_TAG]{@category, null, null, category, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1166 |
"since[JAVADOC_BLOCK_TAG]{@since, null, null, since, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1167 |
"serial[JAVADOC_BLOCK_TAG]{@serial, null, null, serial, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1168 |
"link[JAVADOC_INLINE_TAG]{{@link}, null, null, link, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1169 |
"docRoot[JAVADOC_INLINE_TAG]{{@docRoot}, null, null, docRoot, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1170 |
"linkplain[JAVADOC_INLINE_TAG]{{@linkplain}, null, null, linkplain, null, "+this.positions+JAVADOC_RELEVANCE+"}\n" + |
1171 |
"value[JAVADOC_INLINE_TAG]{{@value}, null, null, value, null, "+this.positions+JAVADOC_RELEVANCE+"}" |
1172 |
); |
1173 |
} |
1132 |
} |
1174 |
} |