Skip to content

Commit 8f0f20e

Browse files
EvgenyB1001iText-CI
authored andcommitted
Unignore FontFaceTest methods
DEVSIX-1612
1 parent ebcc006 commit 8f0f20e

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/test/java/com/itextpdf/html2pdf/css/FontFaceTest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,15 @@ public void w3cProblemTest01() throws IOException, InterruptedException {
175175
}
176176

177177
@Test
178-
@Ignore("DEVSIX-1612")
179-
//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!
180-
//See DirectoryTableOrder002Test in io for decompression details
181178
public void w3cProblemTest02() throws IOException, InterruptedException {
182-
runTest("w3cProblemTest02");
179+
try {
180+
runTest("w3cProblemTest02");
181+
} catch (NegativeArraySizeException e) {
182+
return;
183+
}
184+
185+
Assert.fail("In w3c test suite this font is labeled as invalid, "
186+
+ "so the invalid negative value is expected while creating a glyph.");
183187
}
184188

185189
@Test
@@ -213,11 +217,15 @@ public void w3cProblemTest06() throws IOException, InterruptedException {
213217
}
214218

215219
@Test
216-
@Ignore("DEVSIX-1612")
217-
//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!
218-
//See ValidationOff012Test in io for decompression details
219220
public void w3cProblemTest07() throws IOException, InterruptedException {
220-
runTest("w3cProblemTest07");
221+
try {
222+
runTest("w3cProblemTest07");
223+
} catch (NegativeArraySizeException e) {
224+
return;
225+
}
226+
227+
Assert.fail("In w3c test suite this font is labeled as invalid, "
228+
+ "so the invalid negative value is expected while creating a glyph.");
221229
}
222230

223231
@Test

0 commit comments

Comments
 (0)