mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 12:15:34 -06:00
Add incremental test.
This commit is contained in:
parent
3928f743ac
commit
58d36afbec
@ -671,6 +671,16 @@ module m3 { }\
|
||||
compareTrees(oldText, newTextAndChange.text, newTextAndChange.textChangeRange, 0);
|
||||
});
|
||||
|
||||
it('Regular expression to divide operation',() => {
|
||||
var source = "return;\r\nwhile (true) /3/g;"
|
||||
|
||||
var oldText = ScriptSnapshot.fromString(source);
|
||||
var index = source.indexOf("while");
|
||||
var newTextAndChange = withDelete(oldText, index, "while ".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