[html] intersecting regions test

This commit is contained in:
Martin Aeschlimann 2018-04-12 22:21:48 +02:00
parent a2346c606d
commit b372c7ea1e

View file

@ -224,6 +224,17 @@ suite('HTML Folding', () => {
assertRanges(input, [r(0, 3)]);
});
test('Fold intersecting region 2', () => {
let input = [
/*0*/'<!-- #region -->',
/*1*/'<body>',
/*2*/'Hello',
/*3*/'<!-- #endregion -->',
/*4*/'<div></div>',
/*5*/'</body>',
];
assertRanges(input, [r(0, 3, 'region')]);
});
test('Test limit', () => {
let input = [