mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 21:37:41 -06:00
Add incremental test.
This commit is contained in:
parent
5b2778c200
commit
418c0d9d91
@ -481,6 +481,16 @@ module ts {
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
|
||||
});
|
||||
|
||||
it('Test generic invocation to contextual shift',() => {
|
||||
var source = "var v = Foo<Bar<T>>(2)";
|
||||
|
||||
var index = source.indexOf('Foo<Bar<');
|
||||
var oldText = ScriptSnapshot.fromString(source);
|
||||
var newTextAndChange = withDelete(oldText, index, "Foo<Bar<".length);
|
||||
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
|
||||
});
|
||||
|
||||
// Simulated typing tests.
|
||||
|
||||
it('Type extends clause 1',() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user