Skip to content

Commit 1d22783

Browse files
pavel-alayiText-CI
authored andcommitted
Move svg path converting tests
1 parent bb82281 commit 1d22783

File tree

11 files changed

+136
-2
lines changed

11 files changed

+136
-2
lines changed

svg/src/test/java/com/itextpdf/svg/renderers/impl/PathParsingIntegrationTest.java

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.renderers.impl;
4444

45-
46-
import com.itextpdf.styledxmlparser.LogMessageConstant;
4745
import com.itextpdf.svg.exceptions.SvgLogMessageConstant;
4846
import com.itextpdf.svg.exceptions.SvgProcessingException;
4947
import com.itextpdf.svg.renderers.SvgIntegrationTest;
@@ -124,11 +122,13 @@ public void moreThanOneHParam() throws IOException, InterruptedException {
124122
}
125123

126124
@Test
125+
//TODO update after DEVSIX-2331 - several (negative) line operators
127126
public void negativeAfterPositiveHandlingTest01() throws IOException, InterruptedException {
128127
convertAndCompareVisually(sourceFolder, destinationFolder, "negativeAfterPositiveHandling");
129128
}
130129

131130
@Test
131+
//TODO update after DEVSIX-2333 (negative viewbox) fix
132132
public void negativeAfterPositiveHandlingTest02() throws IOException, InterruptedException {
133133
convertAndCompareVisually(sourceFolder, destinationFolder, "negativeAfterPositiveHandlingExtendedViewbox");
134134
}
@@ -161,6 +161,35 @@ public void textPathExample() throws IOException, InterruptedException {
161161
convertAndCompareVisually(sourceFolder, destinationFolder, "textPathExample");
162162
}
163163

164+
@Test
165+
public void pathH() throws IOException, InterruptedException {
166+
convertAndCompareVisually(sourceFolder, destinationFolder, "pathH");
167+
}
168+
169+
@Test
170+
public void pathV() throws IOException, InterruptedException {
171+
convertAndCompareVisually(sourceFolder, destinationFolder, "pathV");
172+
}
173+
174+
@Test
175+
public void pathHV() throws IOException, InterruptedException {
176+
convertAndCompareVisually(sourceFolder, destinationFolder, "pathHV");
177+
}
178+
179+
@Test
180+
public void pathRelativeAbsoluteCombinedTest() throws IOException, InterruptedException {
181+
convertAndCompareVisually(sourceFolder, destinationFolder, "pathRelativeAbsoluteCombined");
182+
}
183+
184+
@Test
185+
public void pathHVExponential() throws IOException, InterruptedException {
186+
// TODO DEVSIX-2906 This file has large numbers (2e+10) in it. At the moment we do not post-process such big numbers
187+
// and simply print them to the output PDF. Not all the viewers are able to process such large numbers
188+
// and hence different results in different viewers. Acrobat is not able to process the numbers
189+
// and the result is garbled visual representation. GhostScript, however, renders the PDF just fine
190+
convertAndCompareVisually(sourceFolder, destinationFolder, "pathHVExponential");
191+
}
192+
164193
@Test
165194
public void pathABasic() throws IOException, InterruptedException {
166195
convertAndCompareSinglePageVisually(sourceFolder, destinationFolder, "pathABasic");
Lines changed: 31 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)