Skip to content

Commit 405bf30

Browse files
EvgenyB1001iText-CI
authored andcommitted
Unignore DirectoryTableOrder002Test, FontFaceTest methods
DEVSIX-1612 Autoported commit. Original commit hash: [aa483b464]
1 parent c694845 commit 405bf30

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

itext.tests/itext.io.tests/itext/io/font/woff2/w3c/format/DirectoryTableOrder002Test.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ source product.
4444
using iText.IO.Font.Woff2.W3c;
4545

4646
namespace iText.IO.Font.Woff2.W3c.Format {
47-
[NUnit.Framework.Ignore("DEVSIX-1612: different result in java and C#")]
4847
public class DirectoryTableOrder002Test : W3CWoff2DecodeTest {
49-
//NOTE: Should be invalid by w3c test suite spec. See w3cProblemTest02 in html font-face test for more details.
5048
protected internal override String GetFontName() {
5149
return "directory-table-order-002";
5250
}

itext.tests/itext.svg.tests/itext/svg/processors/impl/font/FontFaceTest.cs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,15 @@ public virtual void W3cProblemTest01() {
138138
}
139139

140140
[NUnit.Framework.Test]
141-
[NUnit.Framework.Ignore("DEVSIX-1612")]
142141
public virtual void W3cProblemTest02() {
143-
//TODO: In w3c test suite this font is labeled as invalid though and its loading failed in browser, though iText parses its as correct one and LOADS!
144-
//See DirectoryTableOrder002Test in io for decompression details
145-
RunTest("w3cProblemTest02");
142+
try {
143+
RunTest("w3cProblemTest02");
144+
}
145+
catch (OverflowException) {
146+
return;
147+
}
148+
NUnit.Framework.Assert.Fail("In w3c test suite this font is labeled as invalid, " + "so the invalid negative value is expected while creating a glyph."
149+
);
146150
}
147151

148152
[NUnit.Framework.Test]
@@ -176,11 +180,15 @@ public virtual void W3cProblemTest06() {
176180
}
177181

178182
[NUnit.Framework.Test]
179-
[NUnit.Framework.Ignore("DEVSIX-1612")]
180183
public virtual void W3cProblemTest07() {
181-
//TODO: In w3c test suite this font is labeled as invalid though and its loading failed in browser, though iText parses its as correct one and LOADS!
182-
//See ValidationOff012Test in io for decompression details
183-
RunTest("w3cProblemTest07");
184+
try {
185+
RunTest("w3cProblemTest07");
186+
}
187+
catch (OverflowException) {
188+
return;
189+
}
190+
NUnit.Framework.Assert.Fail("In w3c test suite this font is labeled as invalid, " + "so the invalid negative value is expected while creating a glyph."
191+
);
184192
}
185193

186194
[NUnit.Framework.Test]

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8c64bac2d21ffb918af4f0d40f9864f787bf5e30
1+
aa483b464480ef8a7a1f14c2675b90b03ded5ba9

0 commit comments

Comments
 (0)