mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Add incremental test.
This commit is contained in:
parent
afec0fb9f0
commit
9b53947d51
@ -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',() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user