mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
[html] intersecting regions test
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user