mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Add incremental test.
This commit is contained in:
1 parent
c482a9e0e3
commit
1cd2fb4333
1 file changed
+10
@@ -408,5 +408,15 @@ module ts {
|
||||
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, -1);
|
||||
});
|
||||
|
||||
it('Speculative generic lookahead 4',() => {
|
||||
var source = "var v = F<a,b,c,d>e";
|
||||
|
||||
var index = source.indexOf('b');
|
||||
var oldText = ScriptSnapshot.fromString(source);
|
||||
var newTextAndChange = withInsert(oldText, index + 1, ",x");
|
||||
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, -1);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user