提交 1722b6d1 编写于 作者: A Alex Dima

Dispose all models in tests

上级 cef95835
......@@ -642,16 +642,18 @@ suite('Editor Model - Find', () => {
'',
'Again nothing interesting here'
];
thisModel = new Model.Model(text.join('\n'), null);
var model = new Model.Model(text.join('\n'), null);
var ranges = [
[2, 1, 2, 1],
[4, 1, 4, 1]
];
var matches = thisModel.findMatches('^$', false, true, false, false);
var matches = model.findMatches('^$', false, true, false, false);
assert.equal(matches.length, ranges.length);
for (var i = 0; i < matches.length; i++) {
rangeEqual(matches[i], ranges[i][0], ranges[i][1], ranges[i][2], ranges[i][3]);
}
model.dispose();
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册