Skip to content

Commit e791447

Browse files
Kate IvanovaBezrukovM
authored andcommitted
Add tests for applying SVG linear gradient to different types of path elements
DEVSIX-4019
1 parent 8e30869 commit e791447

File tree

31 files changed

+423
-0
lines changed

31 files changed

+423
-0
lines changed

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

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,96 @@ public void pathLinesBasedWithTwoFiguresTest() throws IOException, InterruptedEx
8585
convertAndCompare(sourceFolder, destinationFolder, "pathLinesBasedWithTwoFigures");
8686
}
8787

88+
@Test
89+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
90+
public void cubicBezierTest() throws IOException, InterruptedException, java.io.IOException {
91+
convertAndCompare(sourceFolder, destinationFolder, "cubicBezier");
92+
}
93+
94+
@Test
95+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
96+
public void cubicBezierInsideOtherCubicBezierTest() throws IOException, InterruptedException, java.io.IOException {
97+
convertAndCompare(sourceFolder, destinationFolder, "cubicBezierInsideOtherCubicBezier");
98+
}
99+
100+
@Test
101+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
102+
public void smoothCubicBezierWithAbsoluteCoordinatesTest() throws IOException, InterruptedException, java.io.IOException {
103+
convertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierWithAbsoluteCoordinates");
104+
}
105+
106+
@Test
107+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
108+
public void smoothCubicBezierWithRelativeCoordinatesTest() throws IOException, InterruptedException, java.io.IOException {
109+
convertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierWithRelativeCoordinates");
110+
}
111+
112+
@Test
113+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
114+
public void smoothCubicBezierRelativeAndAbsoluteCoordWithMoveTest() throws IOException, InterruptedException, java.io.IOException {
115+
convertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierRelativeAndAbsoluteCoordWithMove");
116+
}
117+
118+
@Test
119+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
120+
public void smoothCubicBezierRelativeAndAbsoluteCoordNoZOperatorTest() throws IOException, InterruptedException, java.io.IOException {
121+
convertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierRelativeAndAbsoluteCoordNoZOperator");
122+
}
123+
124+
@Test
125+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
126+
public void quadraticBezierTest() throws IOException, InterruptedException, java.io.IOException {
127+
convertAndCompare(sourceFolder, destinationFolder, "quadraticBezier");
128+
}
129+
130+
@Test
131+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
132+
public void quadraticBezierInsideOtherQuadraticBezierTest() throws IOException, InterruptedException, java.io.IOException {
133+
convertAndCompare(sourceFolder, destinationFolder, "quadraticBezierInsideOtherQuadraticBezier");
134+
}
135+
136+
@Test
137+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
138+
public void smoothQuadraticBezierWithAbsoluteCoordinatesTest() throws IOException, InterruptedException, java.io.IOException {
139+
convertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierWithAbsoluteCoordinates");
140+
}
141+
142+
@Test
143+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
144+
public void smoothQuadraticBezierWithRelativeCoordinatesTest() throws IOException, InterruptedException, java.io.IOException {
145+
convertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierWithRelativeCoordinates");
146+
}
147+
148+
@Test
149+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
150+
public void smoothQuadraticBezierAbsoluteAndRelativeCoordWithMoveTest() throws IOException, InterruptedException, java.io.IOException {
151+
convertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierAbsoluteAndRelativeCoordWithMove");
152+
}
153+
154+
@Test
155+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
156+
public void smoothQuadraticBezierRelativeAndAbsoluteCoordNoZOperatorTest() throws IOException, InterruptedException, java.io.IOException {
157+
convertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierRelativeAndAbsoluteCoordNoZOperator");
158+
}
159+
160+
@Test
161+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
162+
public void ellipticalArcsTest() throws IOException, InterruptedException, java.io.IOException {
163+
convertAndCompare(sourceFolder, destinationFolder, "ellipticalArcs");
164+
}
165+
166+
@Test
167+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
168+
public void ellipticalArcsRelativeCoordinatesTest() throws IOException, InterruptedException, java.io.IOException {
169+
convertAndCompare(sourceFolder, destinationFolder, "ellipticalArcsRelativeCoordinates");
170+
}
171+
172+
@Test
173+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
174+
public void arcInsideOtherEllipticalArcTest() throws IOException, InterruptedException, java.io.IOException {
175+
convertAndCompare(sourceFolder, destinationFolder, "arcInsideOtherEllipticalArc");
176+
}
177+
88178
// TODO: DEVSIX-3932 update cmp_ after fix
89179
@Test
90180
public void polygonTest() throws IOException, InterruptedException, java.io.IOException {
Lines changed: 29 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)