Add incremental test.

This commit is contained in:
Cyrus Najmabadi 2014-12-09 18:23:25 -08:00
parent afec0fb9f0
commit 9b53947d51

View File

@ -584,6 +584,16 @@ module ts {
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
});
it('Edit after empty type parameter list',() => {
var source = "class Dictionary<> { }\r\nvar y;\r\n";
var oldText = ScriptSnapshot.fromString(source);
var index = source.length;
var newTextAndChange = withInsert(oldText, index, "var x;");
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
});
// Simulated typing tests.
it('Type extends clause 1',() => {