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
d5e2ab993e
commit
6058dbbc2f
1 file changed
+10
@@ -388,5 +388,15 @@ module ts {
|
||||
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, -1);
|
||||
});
|
||||
|
||||
it('Speculative generic lookahead 2',() => {
|
||||
var source = "var v = F<a,b>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