File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
itext.tests/itext.html2pdf.tests/itext/html2pdf/css Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change 1- ebcc0068f2306b285f815c317860c7c57472d1ad
1+ 8f0f20e8bf9904fc0dcea6c5fb96f009ef066fb2
You can’t perform that action at this time.
0 commit comments