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 29, 2024
2 parents fff28d4 + a987d22 commit 57e9347
Show file tree
Hide file tree
Showing 45 changed files with 801 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ You should have received a copy of the GNU Affero General Public License
using System;
using System.IO;
using iText.Commons.Utils;
using iText.IO.Util;
using iText.Kernel.Geom;
using iText.Kernel.Pdf;
using iText.Kernel.Utils;
Expand Down Expand Up @@ -129,6 +130,8 @@ public virtual void ConvertAndCompareSinglePage(String src, String dest, String
}

protected internal virtual void Compare(String filename, String sourceFolder, String destinationFolder) {
System.Console.Out.WriteLine("SVG: " + UrlUtil.GetNormalizedFileUriString(sourceFolder + filename + ".svg"
) + "\n");
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + filename + ".pdf", sourceFolder
+ "cmp_" + filename + ".pdf", destinationFolder, "diff_"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@ public virtual void TextTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "text");
}

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

[NUnit.Framework.Test]
public virtual void TextNestedTSpansTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "textNestedTSpansTest");
Expand All @@ -336,6 +341,21 @@ public virtual void TextDxTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "textDxTest");
}

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

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

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

[NUnit.Framework.Test]
public virtual void TextDyTest() {
ConvertAndCompare(sourceFolder, destinationFolder, "textDyTest");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ public virtual void LinearGradientInsidePatternTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "linearGradientInsidePattern");
}

[NUnit.Framework.Test]
public virtual void LinearGradientInsidePatternTextTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "linearGradientInsidePatternText");
}

[NUnit.Framework.Test]
public virtual void NestedPatternsTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "nestedPatterns");
Expand Down Expand Up @@ -441,6 +446,16 @@ public virtual void CoordSystemTransform() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "coordSystemTransform");
}

[NUnit.Framework.Test]
public virtual void TextCoordSystemTransformTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "textCoordSystemTransform");
}

[NUnit.Framework.Test]
public virtual void TextAnchorTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "textAnchorTest");
}

[NUnit.Framework.Test]
[LogMessage(SvgLogMessageConstant.VIEWBOX_VALUE_MUST_BE_FOUR_NUMBERS, Count = 1)]
public virtual void IncorrectViewBoxValuesNumberTest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ public virtual void TSpanTextAnchorFunctionalTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "textspan-textAnchor");
}

[NUnit.Framework.Test]
public virtual void TspanTextAnchorTest() {
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "textspan-textAnchor2");
}

[NUnit.Framework.Test]
public virtual void TspanBasicExample() {
//TODO: update after DEVSIX-2507 fix
Expand Down
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.
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
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 57e9347

Please sign in to comment.