Skip to content

Commit 2eda4e6

Browse files
committed
add rowSpanning table example
1 parent cb8603c commit 2eda4e6

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
67.1 KB
Loading
16.8 KB
Loading

tests/visual/table.spec.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,4 +405,24 @@ describe('table', function () {
405405
},
406406
);
407407
});
408+
409+
test('multi page table', function () {
410+
return runDocTest({ size: [500, 300] }, function (doc) {
411+
doc.font('tests/fonts/Roboto-Italic.ttf');
412+
doc.table({
413+
debug: true,
414+
data: [
415+
[
416+
{
417+
rowSpan: 3,
418+
text: 'LEFT_COLUMN',
419+
},
420+
'RIGHT_COLUM_ROW_1\n'.repeat(5),
421+
],
422+
['RIGHT_COLUM_ROW_2\n'.repeat(5)],
423+
['RIGHT_COLUM_ROW_3'],
424+
],
425+
});
426+
});
427+
});
408428
});

0 commit comments

Comments
 (0)