Lines 12379-12384
Link Here
|
12379 |
"zzzTest2[VARIABLE_DECLARATION]{zzzTest2, null, Ltest.Test2;, zzzTest2, null, "+(R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED)+"}", |
12379 |
"zzzTest2[VARIABLE_DECLARATION]{zzzTest2, null, Ltest.Test2;, zzzTest2, null, "+(R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED)+"}", |
12380 |
requestor.getResults()); |
12380 |
requestor.getResults()); |
12381 |
} |
12381 |
} |
|
|
12382 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=175834 |
12383 |
public void testCompletionVariableName36() throws JavaModelException { |
12384 |
this.workingCopies = new ICompilationUnit[1]; |
12385 |
this.workingCopies[0] = getWorkingCopy( |
12386 |
"/Completion/src/test/Test.java", |
12387 |
"package test;\n"+ |
12388 |
"public class Test {\n"+ |
12389 |
" void bar() {\n"+ |
12390 |
" /**/int varzz\n"+ |
12391 |
" {\n"+ |
12392 |
" int varzz1 = 0;\n"+ |
12393 |
" varzz1 = 0;\n"+ |
12394 |
" }\n"+ |
12395 |
" int varzz2 = 0;\n"+ |
12396 |
" #\n"+ |
12397 |
" }\n"+ |
12398 |
"}"); |
12399 |
|
12400 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
12401 |
String str = this.workingCopies[0].getSource(); |
12402 |
String completeBehind = "/**/int varzz"; |
12403 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
12404 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
12405 |
|
12406 |
assertResults( |
12407 |
"varzzI[VARIABLE_DECLARATION]{varzzI, null, I, varzzI, null, "+(R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED)+"}", |
12408 |
requestor.getResults()); |
12409 |
} |
12382 |
public void testCompletionVariableName4() throws JavaModelException { |
12410 |
public void testCompletionVariableName4() throws JavaModelException { |
12383 |
this.wc = getWorkingCopy( |
12411 |
this.wc = getWorkingCopy( |
12384 |
"/Completion/src/CompletionVariableName4.java", |
12412 |
"/Completion/src/CompletionVariableName4.java", |