mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
Test now covers completion entry at name of the import when there is no name and there is name
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
///<reference path="fourslash.ts" />
|
||||
|
||||
////import /*1*/q = /*2*/
|
||||
////import /*1*/ /*2*/
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListIsEmpty();
|
||||
edit.insert('q');
|
||||
verify.completionListIsEmpty();
|
||||
verifyIncompleteImportName();
|
||||
|
||||
verifyIncompleteImport();
|
||||
goTo.marker('2');
|
||||
edit.insert("a.");
|
||||
verifyIncompleteImport();
|
||||
edit.insert(" = ");
|
||||
verifyIncompleteImportName();
|
||||
|
||||
function verifyIncompleteImport() {
|
||||
goTo.marker("2");
|
||||
edit.moveRight(" = ".length);
|
||||
edit.insert("a.");
|
||||
verifyIncompleteImportName();
|
||||
|
||||
function verifyIncompleteImportName() {
|
||||
goTo.marker('1');
|
||||
verify.completionListIsEmpty();
|
||||
verify.quickInfoIs("import q");
|
||||
|
||||
Reference in New Issue
Block a user