Skip to content

Commit 7be5256

Browse files
Kate IvanovaiText-CI
authored andcommitted
Add tests for applying SVG linear gradient to different types of path elements
DEVSIX-4019 Autoported commit. Original commit hash: [e79144785]
1 parent 1a0cb5a commit 7be5256

File tree

32 files changed

+426
-1
lines changed

32 files changed

+426
-1
lines changed

itext.tests/itext.svg.tests/itext/svg/renderers/impl/LinearGradientSvgNodeRendererTest.cs

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,98 @@ public virtual void PathLinesBasedWithTwoFiguresTest() {
7575
ConvertAndCompare(sourceFolder, destinationFolder, "pathLinesBasedWithTwoFigures");
7676
}
7777

78+
[NUnit.Framework.Test]
79+
public virtual void CubicBezierTest() {
80+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
81+
ConvertAndCompare(sourceFolder, destinationFolder, "cubicBezier");
82+
}
83+
84+
[NUnit.Framework.Test]
85+
public virtual void CubicBezierInsideOtherCubicBezierTest() {
86+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
87+
ConvertAndCompare(sourceFolder, destinationFolder, "cubicBezierInsideOtherCubicBezier");
88+
}
89+
90+
[NUnit.Framework.Test]
91+
public virtual void SmoothCubicBezierWithAbsoluteCoordinatesTest() {
92+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
93+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierWithAbsoluteCoordinates");
94+
}
95+
96+
[NUnit.Framework.Test]
97+
public virtual void SmoothCubicBezierWithRelativeCoordinatesTest() {
98+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
99+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierWithRelativeCoordinates");
100+
}
101+
102+
[NUnit.Framework.Test]
103+
public virtual void SmoothCubicBezierRelativeAndAbsoluteCoordWithMoveTest() {
104+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
105+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierRelativeAndAbsoluteCoordWithMove");
106+
}
107+
108+
[NUnit.Framework.Test]
109+
public virtual void SmoothCubicBezierRelativeAndAbsoluteCoordNoZOperatorTest() {
110+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
111+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothCubicBezierRelativeAndAbsoluteCoordNoZOperator");
112+
}
113+
114+
[NUnit.Framework.Test]
115+
public virtual void QuadraticBezierTest() {
116+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
117+
ConvertAndCompare(sourceFolder, destinationFolder, "quadraticBezier");
118+
}
119+
120+
[NUnit.Framework.Test]
121+
public virtual void QuadraticBezierInsideOtherQuadraticBezierTest() {
122+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
123+
ConvertAndCompare(sourceFolder, destinationFolder, "quadraticBezierInsideOtherQuadraticBezier");
124+
}
125+
126+
[NUnit.Framework.Test]
127+
public virtual void SmoothQuadraticBezierWithAbsoluteCoordinatesTest() {
128+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
129+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierWithAbsoluteCoordinates");
130+
}
131+
132+
[NUnit.Framework.Test]
133+
public virtual void SmoothQuadraticBezierWithRelativeCoordinatesTest() {
134+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
135+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierWithRelativeCoordinates");
136+
}
137+
138+
[NUnit.Framework.Test]
139+
public virtual void SmoothQuadraticBezierAbsoluteAndRelativeCoordWithMoveTest() {
140+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
141+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierAbsoluteAndRelativeCoordWithMove"
142+
);
143+
}
144+
145+
[NUnit.Framework.Test]
146+
public virtual void SmoothQuadraticBezierRelativeAndAbsoluteCoordNoZOperatorTest() {
147+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
148+
ConvertAndCompare(sourceFolder, destinationFolder, "smoothQuadraticBezierRelativeAndAbsoluteCoordNoZOperator"
149+
);
150+
}
151+
152+
[NUnit.Framework.Test]
153+
public virtual void EllipticalArcsTest() {
154+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
155+
ConvertAndCompare(sourceFolder, destinationFolder, "ellipticalArcs");
156+
}
157+
158+
[NUnit.Framework.Test]
159+
public virtual void EllipticalArcsRelativeCoordinatesTest() {
160+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
161+
ConvertAndCompare(sourceFolder, destinationFolder, "ellipticalArcsRelativeCoordinates");
162+
}
163+
164+
[NUnit.Framework.Test]
165+
public virtual void ArcInsideOtherEllipticalArcTest() {
166+
// TODO: update cmp-file after DEVSIX-4018 will be fixed
167+
ConvertAndCompare(sourceFolder, destinationFolder, "arcInsideOtherEllipticalArc");
168+
}
169+
78170
// TODO: DEVSIX-3932 update cmp_ after fix
79171
[NUnit.Framework.Test]
80172
public virtual void PolygonTest() {
Lines changed: 29 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)