2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
////class Foo {
|
|
|
|
////}
|
|
|
|
////module Foo {
|
|
|
|
//// export var x: number;
|
|
|
|
////}
|
|
|
|
////Foo./**/
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
const exact: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [
|
|
|
|
"prototype",
|
|
|
|
{ name: "x", text: "var Foo.x: number" },
|
|
|
|
...completion.functionMembers,
|
|
|
|
];
|
|
|
|
verify.completions({ marker: "", exact });
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// Make an edit
|
|
|
|
edit.insert("a");
|
|
|
|
edit.backspace();
|
|
|
|
|
|
|
|
// Checking for completion details after edit should work too
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ exact });
|