Skip to content

Commit

Permalink
Merge branch 'develop' into devsecops
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-ivanov committed Dec 5, 2024
2 parents 5f5a09f + 369f95f commit 4c031ec
Show file tree
Hide file tree
Showing 106 changed files with 742 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,72 @@ public virtual void GroupInheritanceTest() {
public virtual void UseInheritanceNotOverridingTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "useInheritanceNotOverriding");
}

[NUnit.Framework.Test]
public virtual void UsePropertiesInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "usePropertiesInheritance");
}

[NUnit.Framework.Test]
public virtual void FillOpacityInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "fillOpacityInheritance");
}

[NUnit.Framework.Test]
public virtual void FillRuleInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "fillRuleInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeWidthInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeWidthInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeOpacityInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeOpacityInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeLinecapInheritanceTest() {
//TODO DEVSIX-4857 support stroke-linecap attribute
ConvertAndCompare(sourceFolder, destinationFolder, "strokeLinecapInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeLinejoinInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeLinejoinInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeDasharrayInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeDasharrayInheritance");
}

[NUnit.Framework.Test]
public virtual void StrokeDashoffsetInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "strokeDashoffsetInheritance");
}

[NUnit.Framework.Test]
public virtual void OpacityInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "opacityInheritance");
}

[NUnit.Framework.Test]
public virtual void TextPropertiesInheritanceTest() {
//TODO DEVSIX-4114 support vertical text attribute
ConvertAndCompare(sourceFolder, destinationFolder, "textPropertiesInheritance");
}

[NUnit.Framework.Test]
public virtual void NestedInheritanceTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "nestedInheritance");
}
}
}
6 changes: 6 additions & 0 deletions itext.tests/itext.svg.tests/itext/svg/renderers/StrokeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,11 @@ public virtual void HeightWidthZeroTest() {
//TODO DEVSIX-8760 : change cmp after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "height-width-zero");
}

[NUnit.Framework.Test]
public virtual void StrokeDashArrayLinesTest() {
//TODO: update cmp-file after DEVSIX-2258
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "strokeDashArrayLines");
}
}
}
88 changes: 88 additions & 0 deletions itext.tests/itext.svg.tests/itext/svg/renderers/impl/LinkTest.cs
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");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public virtual void PrecedingSpacesTest() {

[NUnit.Framework.Test]
[LogMessage(SvgLogMessageConstant.UNMAPPED_TAG)]
public virtual void Text_path_Test() {
public virtual void TextPathTest() {
//TODO: update cmp-file after DEVSIX-2255
ConvertAndCompare(sourceFolder, destinationFolder, "textpath");
}
Expand All @@ -122,6 +122,13 @@ public virtual void TextPathExample() {
ConvertAndCompare(sourceFolder, destinationFolder, "textPathExample");
}

[NUnit.Framework.Test]
[LogMessage(SvgLogMessageConstant.UNMAPPED_TAG)]
public virtual void TspanInTextPathTest() {
//TODO: update when DEVSIX-2255 implemented
ConvertAndCompare(sourceFolder, destinationFolder, "tspanInTextPath");
}

[NUnit.Framework.Test]
public virtual void PathH() {
ConvertAndCompare(sourceFolder, destinationFolder, "pathH");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,53 @@ public virtual void TspanNestedExample() {
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanNestedExample");
}

[NUnit.Framework.Test]
public virtual void TspanDxDyAttributesTest() {
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanDxDyAttributes");
}

[NUnit.Framework.Test]
public virtual void TspanBaselineShiftTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanBaselineShift");
}

[NUnit.Framework.Test]
public virtual void TspanRotateTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanRotate");
}

[NUnit.Framework.Test]
public virtual void TspanLengthAdjustTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanLengthAdjust");
}

[NUnit.Framework.Test]
public virtual void TspanTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanTextLength");
}

[NUnit.Framework.Test]
public virtual void TspanStretchedTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanStretchedTextLengthTest");
}

[NUnit.Framework.Test]
public virtual void TspanShrunkTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanShrunkTextLengthTest");
}

[NUnit.Framework.Test]
public virtual void TspanCombinedAttributesTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanCombinedAttributes");
}

[NUnit.Framework.Test]
public virtual void Text_decoration_Test() {
//TODO: update cmp-file after DEVSIX-2270 fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,5 +221,112 @@ public virtual void TextFontSizeExUnitsTest() {
public virtual void TspanWithOneAbsoluteCoordinateTest() {
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "tspanWithOneAbsoluteCoordinateTest");
}

[NUnit.Framework.Test]
public virtual void TextDxDyAttributesTest() {
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textDxDyAttributes");
}

[NUnit.Framework.Test]
public virtual void TextBaselineShiftTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textBaselineShift");
}

[NUnit.Framework.Test]
public virtual void TextRotateTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textRotate");
}

[NUnit.Framework.Test]
public virtual void TextLengthAdjustTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textLengthAdjust");
}

[NUnit.Framework.Test]
public virtual void TextTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textTextLength");
}

[NUnit.Framework.Test]
public virtual void TextStretchedTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textStretchedTextLength");
}

[NUnit.Framework.Test]
public virtual void TextShrunkTextLengthTest() {
//TODO: DEVSIX-2507, DEVSIX-5477 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textShrunkTextLength");
}

[NUnit.Framework.Test]
public virtual void TextCombinedAttributesTest() {
//TODO: DEVSIX-2507 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textCombinedAttributes");
}

[NUnit.Framework.Test]
public virtual void TextStrokeDasharrayTest() {
//TODO: DEVSIX-8776 Support stroke dash pattern in layout
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textStrokeDasharray");
}

[NUnit.Framework.Test]
public virtual void TextComplexStrokeDasharrayTest() {
//TODO: DEVSIX-8776 Support stroke dash pattern in layout
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textComplexStrokeDasharray");
}

[NUnit.Framework.Test]
public virtual void TextTextDecorationUnderlineTest() {
//TODO: DEVSIX-2270, DEVSIX-4586 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textTextDecorationUnderline");
}

[NUnit.Framework.Test]
public virtual void TextTextDecorationLineThroughTest() {
//TODO: DEVSIX-2270, DEVSIX-4586 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textTextDecorationLineThrough");
}

[NUnit.Framework.Test]
public virtual void TextTextDecorationOverlineTest() {
//TODO: DEVSIX-2270, DEVSIX-4586 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textTextDecorationOverline");
}

[NUnit.Framework.Test]
public virtual void TextWhiteSpaceNormalTest() {
//TODO: DEVSIX-2284 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textWhiteSpaceNormal");
}

[NUnit.Framework.Test]
public virtual void TextWhiteSpacePreTest() {
//TODO: DEVSIX-2284 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textWhiteSpacePre");
}

[NUnit.Framework.Test]
public virtual void TextWhiteSpaceNoWrapTest() {
//TODO: DEVSIX-2284 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textWhiteSpaceNoWrap");
}

[NUnit.Framework.Test]
public virtual void TextWhiteSpacePreWrapTest() {
//TODO: DEVSIX-2284 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textWhiteSpacePreWrap");
}

[NUnit.Framework.Test]
public virtual void TextWhiteSpacePreLineTest() {
//TODO: DEVSIX-2284 update cmp file after fix
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "textWhiteSpacePreLine");
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4c031ec

Please sign in to comment.