Add incremental test.

This commit is contained in:
Cyrus Najmabadi 2014-12-09 16:56:00 -08:00
parent bcffd5331c
commit 778e180e40

View File

@ -227,5 +227,15 @@ module ts {
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
});
it('Comment 4',() => {
var source = "class C { public foo1() { /; } public foo2() { */ return 1; } public foo3() { } }";
var index = source.indexOf(";");
var oldText = ScriptSnapshot.fromString(source);
var newTextAndChange = withInsert(oldText, index, "*");
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
});
});
}