提交 4d78742a 编写于 作者: M Martin Aeschlimann

[html] test fold regions

上级 21d517ef
......@@ -95,15 +95,15 @@ suite('Object Folding', () => {
assertRanges(input, [r(0, 2, 'comment'), r(3, 4, 'comment')]);
});
// test('Fold regions', () => {
// let input = [
// /*0*/'// #region',
// /*1*/'{',
// /*2*/'}',
// /*3*/'// #endregion',
// ];
// assertRanges(input, [r(0, 3, 'region')]);
// });
test('Fold regions', () => {
let input = [
/*0*/'<!-- #region -->',
/*1*/'<!-- #region -->',
/*2*/'<!-- #endregion -->',
/*3*/'<!-- #endregion -->',
];
assertRanges(input, [r(0, 3, 'region'), r(1, 2, 'region')]);
});
test('Test limit', () => {
let input = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册