Skip to content

Commit 41aee13

Browse files
EvgenyB1001iText-CI
authored andcommitted
Unignore FontFaceTest methods
DEVSIX-1612 Autoported commit. Original commit hash: [8f0f20e8]
1 parent 79905ed commit 41aee13

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/FontFaceTest.cs

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

161161
[NUnit.Framework.Test]
162-
[NUnit.Framework.Ignore("DEVSIX-1612")]
163162
public virtual void W3cProblemTest02() {
164-
//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!
165-
//See DirectoryTableOrder002Test in io for decompression details
166-
RunTest("w3cProblemTest02");
163+
try {
164+
RunTest("w3cProblemTest02");
165+
}
166+
catch (OverflowException) {
167+
return;
168+
}
169+
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."
170+
);
167171
}
168172

169173
[NUnit.Framework.Test]
@@ -197,11 +201,15 @@ public virtual void W3cProblemTest06() {
197201
}
198202

199203
[NUnit.Framework.Test]
200-
[NUnit.Framework.Ignore("DEVSIX-1612")]
201204
public virtual void W3cProblemTest07() {
202-
//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!
203-
//See ValidationOff012Test in io for decompression details
204-
RunTest("w3cProblemTest07");
205+
try {
206+
RunTest("w3cProblemTest07");
207+
}
208+
catch (OverflowException) {
209+
return;
210+
}
211+
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."
212+
);
205213
}
206214

207215
[NUnit.Framework.Test]

port-hash

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

0 commit comments

Comments
 (0)