@@ -35,6 +35,7 @@ This file is part of the iText (R) project.
3535
3636@ Tag ("IntegrationTest" )
3737public class GridGapTest extends ExtendedHtmlConversionITextTest {
38+ //TODO DEVSIX-7616: Update cmp's
3839 public static final String SOURCE_FOLDER = "./src/test/resources/com/itextpdf/html2pdf/css/grid/GridGapTest/" ;
3940 public static final String DESTINATION_FOLDER = "./target/test/com/itextpdf/html2pdf/css/grid/GridGapTest/" ;
4041
@@ -149,11 +150,62 @@ public void marginTest() throws IOException, InterruptedException {
149150 runTest ("margin" );
150151 }
151152
153+ @ Test
154+ public void colGapLargeMarginItemTest () throws IOException , InterruptedException {
155+ convertToPdfAndCompare ("colGapLargeMarginItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
156+ }
157+
158+ @ Test
159+ public void colGapLargeMarginsTest () throws IOException , InterruptedException {
160+ convertToPdfAndCompare ("colGapLargeMargins" , SOURCE_FOLDER , DESTINATION_FOLDER );
161+ }
162+
152163 @ Test
153164 public void paddingTest () throws IOException , InterruptedException {
154165 runTest ("padding" );
155166 }
156167
168+ @ Test
169+ public void colGapLargePaddingTest () throws IOException , InterruptedException {
170+ convertToPdfAndCompare ("colGapLargePadding" , SOURCE_FOLDER , DESTINATION_FOLDER );
171+ }
172+
173+ @ Test
174+ public void colGapLargePaddingItemTest () throws IOException , InterruptedException {
175+ convertToPdfAndCompare ("colGapLargePaddingItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
176+ }
177+
178+ @ Test
179+ public void colGapLargePaddingOverflowItemTest () throws IOException , InterruptedException {
180+ convertToPdfAndCompare ("colGapLargePaddingOverflowItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
181+ }
182+
183+ @ Test
184+ public void rowGapLargeMarginItemTest () throws IOException , InterruptedException {
185+ convertToPdfAndCompare ("rowGapLargeMarginItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
186+ }
187+
188+ @ Test
189+ public void rowGapLargeMarginsTest () throws IOException , InterruptedException {
190+ convertToPdfAndCompare ("rowGapLargeMargins" , SOURCE_FOLDER , DESTINATION_FOLDER );
191+ }
192+
193+ @ Test
194+ public void rowGapLargePaddingTest () throws IOException , InterruptedException {
195+ convertToPdfAndCompare ("rowGapLargePadding" , SOURCE_FOLDER , DESTINATION_FOLDER );
196+ }
197+
198+ @ Test
199+ public void rowGapLargePaddingItemTest () throws IOException , InterruptedException {
200+ convertToPdfAndCompare ("rowGapLargePaddingItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
201+ }
202+
203+ @ Test
204+ public void rowGapLargePaddingOverflowItemTest () throws IOException , InterruptedException {
205+ convertToPdfAndCompare ("rowGapLargePaddingOverflowItem" , SOURCE_FOLDER , DESTINATION_FOLDER );
206+ }
207+
208+
157209 @ Test
158210 @ LogMessages (messages = @ LogMessage (messageTemplate = StyledXmlParserLogMessageConstant .INVALID_CSS_PROPERTY_DECLARATION ))
159211 public void negativeColGapValueTest () throws IOException , InterruptedException {
@@ -202,6 +254,83 @@ public void gridRowGapTest() throws IOException, InterruptedException {
202254 runTest ("gridRowGapTest" );
203255 }
204256
257+ @ Test
258+ public void autoColumnsLargeGapTest () throws IOException , InterruptedException {
259+ convertToPdfAndCompare ("autoColumnsLargeGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
260+ }
261+
262+ @ Test
263+ public void autoRowsLargeGapTest () throws IOException , InterruptedException {
264+ convertToPdfAndCompare ("autoRowsLargeGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
265+ }
266+
267+ @ Test
268+ @ LogMessages (messages = {
269+ @ LogMessage (messageTemplate = "Cannot find pdfCalligraph module, which was implicitly required by one of the layout properties" , count = 32 )
270+ })
271+ public void colGapRtlDirectionTest () throws IOException , InterruptedException {
272+ convertToPdfAndCompare ("colGapRtlDirection" , SOURCE_FOLDER , DESTINATION_FOLDER );
273+ }
274+
275+ @ Test
276+ @ LogMessages (messages = {
277+ @ LogMessage (messageTemplate = "Cannot find pdfCalligraph module, which was implicitly required by one of the layout properties" , count = 32 )
278+ })
279+ public void rowGapRtlDirectionTest () throws IOException , InterruptedException {
280+ convertToPdfAndCompare ("rowGapRtlDirection" , SOURCE_FOLDER , DESTINATION_FOLDER );
281+ }
282+
283+ @ Test
284+ public void colGapLongGridTest () throws IOException , InterruptedException {
285+ convertToPdfAndCompare ("colGapLongGrid" , SOURCE_FOLDER , DESTINATION_FOLDER );
286+ }
287+
288+ @ Test
289+ public void largeColGapTest () throws IOException , InterruptedException {
290+ convertToPdfAndCompare ("largeColGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
291+ }
292+
293+ @ Test
294+ public void rowGapLongGridTest () throws IOException , InterruptedException {
295+ convertToPdfAndCompare ("rowGapLongGrid" , SOURCE_FOLDER , DESTINATION_FOLDER );
296+ }
297+
298+ @ Test
299+ public void largeRowGapTest () throws IOException , InterruptedException {
300+ convertToPdfAndCompare ("largeRowGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
301+ }
302+
303+ @ Test
304+ public void longGridTest () throws IOException , InterruptedException {
305+ convertToPdfAndCompare ("longGrid" , SOURCE_FOLDER , DESTINATION_FOLDER );
306+ }
307+
308+ @ Test
309+ //TODO DEVSIX-9402: Update cmp's
310+ public void orderOnItemsTest () throws IOException , InterruptedException {
311+ convertToPdfAndCompare ("orderOnItems" , SOURCE_FOLDER , DESTINATION_FOLDER );
312+ }
313+
314+ @ Test
315+ public void percentageColGapTest () throws IOException , InterruptedException {
316+ convertToPdfAndCompare ("percentageColGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
317+ }
318+
319+ @ Test
320+ public void percentageRowGapTest () throws IOException , InterruptedException {
321+ convertToPdfAndCompare ("percentageRowGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
322+ }
323+
324+ @ Test
325+ public void zeroSpaceColGapTest () throws IOException , InterruptedException {
326+ convertToPdfAndCompare ("zeroSpaceColGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
327+ }
328+
329+ @ Test
330+ public void zeroSpaceRowGapTest () throws IOException , InterruptedException {
331+ convertToPdfAndCompare ("zeroSpaceRowGap" , SOURCE_FOLDER , DESTINATION_FOLDER );
332+ }
333+
205334 private void runTest (String testName ) throws IOException , InterruptedException {
206335 convertToPdfAndCompare (testName , SOURCE_FOLDER , DESTINATION_FOLDER , false ,
207336 new ConverterProperties ().setBaseUri (SOURCE_FOLDER ));
0 commit comments