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
418c0d9d91
commit
b8942992a0
@ -491,6 +491,16 @@ module ts {
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
|
||||
});
|
||||
|
||||
it('Contextual shift to generic type and initializer',() => {
|
||||
var source = "var v = T>>=2;";
|
||||
|
||||
var index = source.indexOf('=');
|
||||
var oldText = ScriptSnapshot.fromString(source);
|
||||
var newTextAndChange = withChange(oldText, index, "= ".length, ": Foo<Bar<");
|
||||
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
|
||||
});
|
||||
|
||||
// Simulated typing tests.
|
||||
|
||||
it('Type extends clause 1',() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user