forked from pipeline-foundation/itext7-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into devsecops
- Loading branch information
Showing
106 changed files
with
742 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
itext.tests/itext.svg.tests/itext/svg/renderers/impl/LinkTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
This file is part of the iText (R) project. | ||
Copyright (c) 1998-2024 Apryse Group NV | ||
Authors: Apryse Software. | ||
This program is offered under a commercial and under the AGPL license. | ||
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below. | ||
AGPL licensing: | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
using System; | ||
using iText.Svg.Renderers; | ||
using iText.Test; | ||
|
||
namespace iText.Svg.Renderers.Impl { | ||
public class LinkTest : SvgIntegrationTest { | ||
private static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext | ||
.CurrentContext.TestDirectory) + "/resources/itext/svg/renderers/impl/LinkTest/"; | ||
|
||
private static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory | ||
+ "/test/itext/svg/renderers/impl/LinkTest/"; | ||
|
||
[NUnit.Framework.OneTimeSetUp] | ||
public static void BeforeClass() { | ||
ITextTest.CreateDestinationFolder(DESTINATION_FOLDER); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void CircleLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "circleLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void TextLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "textLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void CombinedElementsLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "combinedElementsLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void PathLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "pathLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void LineLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "lineLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void PolygonLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "polygonLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void GroupLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "groupLink"); | ||
} | ||
|
||
[NUnit.Framework.Test] | ||
public virtual void NestedSvgLinkTest() { | ||
//TODO: DEVSIX-8710 update cmp file after fix | ||
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "nestedSvgLink"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.58 KB
...itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_fillOpacityInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.39 KB
...ts/itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_fillRuleInheritance.pdf
Binary file not shown.
Binary file added
BIN
+2.29 KB
...ests/itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_nestedInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.81 KB
...sts/itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_opacityInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.36 KB
...t.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeDasharrayInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.44 KB
....svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeDashoffsetInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.53 KB
...ests/itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.34 KB
...ext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeLinecapInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.37 KB
...xt.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeLinejoinInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.61 KB
...ext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeOpacityInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.53 KB
...itext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_strokeWidthInheritance.pdf
Binary file not shown.
Binary file added
BIN
+1.62 KB
...xt.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_textPropertiesInheritance.pdf
Binary file not shown.
Binary file added
BIN
+2.49 KB
...ext.svg.tests/resources/itext/svg/css/DefaultInheritance/cmp_usePropertiesInheritance.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
...svg.tests/resources/itext/svg/css/DefaultInheritance/fillOpacityInheritance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
...xt.svg.tests/resources/itext/svg/css/DefaultInheritance/fillRuleInheritance.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.