Skip to content

Commit aa483b4

Browse files
EvgenyB1001iText-CI
authored andcommitted
Unignore DirectoryTableOrder002Test, FontFaceTest methods
DEVSIX-1612
1 parent 8c64bac commit aa483b4

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

io/src/test/java/com/itextpdf/io/font/woff2/w3c/format/DirectoryTableOrder002Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ This file is part of the iText (R) project.
4343
package com.itextpdf.io.font.woff2.w3c.format;
4444

4545
import com.itextpdf.io.font.woff2.w3c.W3CWoff2DecodeTest;
46-
import org.junit.Ignore;
4746

48-
@Ignore("DEVSIX-1612: different result in java and C#")
49-
//NOTE: Should be invalid by w3c test suite spec. See w3cProblemTest02 in html font-face test for more details.
5047
public class DirectoryTableOrder002Test extends W3CWoff2DecodeTest {
5148
@Override
5249
protected String getFontName() {

svg/src/test/java/com/itextpdf/svg/processors/impl/font/FontFaceTest.java

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ This file is part of the iText (R) project.
6161
import java.io.FileOutputStream;
6262
import java.io.IOException;
6363

64+
import org.junit.Assert;
6465
import org.junit.BeforeClass;
6566
import org.junit.Ignore;
6667
import org.junit.Test;
@@ -155,11 +156,15 @@ public void w3cProblemTest01() throws IOException, InterruptedException {
155156
}
156157

157158
@Test
158-
@Ignore("DEVSIX-1612")
159-
//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!
160-
//See DirectoryTableOrder002Test in io for decompression details
161159
public void w3cProblemTest02() throws IOException, InterruptedException {
162-
runTest("w3cProblemTest02");
160+
try {
161+
runTest("w3cProblemTest02");
162+
} catch (NegativeArraySizeException e) {
163+
return;
164+
}
165+
166+
Assert.fail("In w3c test suite this font is labeled as invalid, "
167+
+ "so the invalid negative value is expected while creating a glyph.");
163168
}
164169

165170
@Test
@@ -193,11 +198,15 @@ public void w3cProblemTest06() throws IOException, InterruptedException {
193198
}
194199

195200
@Test
196-
@Ignore("DEVSIX-1612")
197-
//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!
198-
//See ValidationOff012Test in io for decompression details
199201
public void w3cProblemTest07() throws IOException, InterruptedException {
200-
runTest("w3cProblemTest07");
202+
try {
203+
runTest("w3cProblemTest07");
204+
} catch (NegativeArraySizeException e) {
205+
return;
206+
}
207+
208+
Assert.fail("In w3c test suite this font is labeled as invalid, "
209+
+ "so the invalid negative value is expected while creating a glyph.");
201210
}
202211

203212
@Test

0 commit comments

Comments
 (0)