@@ -1679,15 +1679,15 @@ describe('LayoutBuilder', function () {
1679
1679
it ( 'should return an empty array if no page breaks occur' , function ( ) {
1680
1680
var doc = createTable ( 1 , 0 ) ;
1681
1681
1682
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1682
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1683
1683
1684
1684
assert ( result . pageBreaks instanceof Array ) ;
1685
1685
assert . equal ( result . pageBreaks . length , 0 ) ;
1686
1686
} ) ;
1687
1687
1688
1688
it ( 'on page break should return an entry with ending/starting positions' , function ( ) {
1689
1689
var doc = createTable ( 0 , 1 , 10 , 5 , 5 ) ;
1690
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1690
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1691
1691
1692
1692
assert ( result . pageBreaks instanceof Array ) ;
1693
1693
assert . equal ( result . pageBreaks . length , 1 ) ;
@@ -1697,7 +1697,7 @@ describe('LayoutBuilder', function () {
1697
1697
1698
1698
it ( 'on page break should return an entry with ending/starting positions 2' , function ( ) {
1699
1699
var doc = createTable ( 0 , 1 , 10 , 5 ) ;
1700
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1700
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1701
1701
1702
1702
assert ( result . pageBreaks instanceof Array ) ;
1703
1703
assert . equal ( result . pageBreaks . length , 1 ) ;
@@ -1708,14 +1708,14 @@ describe('LayoutBuilder', function () {
1708
1708
1709
1709
it ( 'on multi-pass page break (columns or table columns) should treat bottom-most page-break as the ending position ' , function ( ) {
1710
1710
var doc = createTable ( 0 , 1 , 10 , 5 , 7 ) ;
1711
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1711
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1712
1712
1713
1713
assert . equal ( result . pageBreaks [ 0 ] . prevY , 40 + 12 * 7 ) ;
1714
1714
} ) ;
1715
1715
1716
1716
it ( 'on multiple page breaks (more than 2 pages), should return all entries with ending/starting positions' , function ( ) {
1717
1717
var doc = createTable ( 0 , 1 , 100 , 90 , 90 ) ;
1718
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1718
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1719
1719
1720
1720
assert ( result . pageBreaks instanceof Array ) ;
1721
1721
assert . equal ( result . pageBreaks . length , 2 ) ;
@@ -1727,7 +1727,7 @@ describe('LayoutBuilder', function () {
1727
1727
1728
1728
it ( 'on multiple page breaks (more than 2 pages), should return all entries with ending/starting positions 2' , function ( ) {
1729
1729
var doc = createTable ( 0 , 1 , 100 , 90 ) ;
1730
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1730
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1731
1731
1732
1732
assert ( result . pageBreaks instanceof Array ) ;
1733
1733
assert . equal ( result . pageBreaks . length , 2 ) ;
@@ -1739,7 +1739,7 @@ describe('LayoutBuilder', function () {
1739
1739
1740
1740
it ( 'on multiple and multi-pass page breaks should calculate bottom-most endings for every page' , function ( ) {
1741
1741
var doc = createTable ( 0 , 1 , 100 , 90 , 92 ) ;
1742
- var result = builder2 . processRow ( doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1742
+ var result = builder2 . processRow ( false , doc . table . body [ 0 ] , doc . table . widths , doc . _offsets . offsets , doc . table . body , 0 ) ;
1743
1743
1744
1744
assert ( result . pageBreaks instanceof Array ) ;
1745
1745
assert . equal ( result . pageBreaks . length , 2 ) ;
0 commit comments