@@ -61,6 +61,7 @@ This file is part of the iText (R) project.
61
61
import java .io .FileOutputStream ;
62
62
import java .io .IOException ;
63
63
64
+ import org .junit .Assert ;
64
65
import org .junit .BeforeClass ;
65
66
import org .junit .Ignore ;
66
67
import org .junit .Test ;
@@ -155,11 +156,15 @@ public void w3cProblemTest01() throws IOException, InterruptedException {
155
156
}
156
157
157
158
@ 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
161
159
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." );
163
168
}
164
169
165
170
@ Test
@@ -193,11 +198,15 @@ public void w3cProblemTest06() throws IOException, InterruptedException {
193
198
}
194
199
195
200
@ 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
199
201
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." );
201
210
}
202
211
203
212
@ Test
0 commit comments