Browse Source

Tests/LibGfx: Add a jbig2 test for transposed text segments

See the PR adding this test for local changes to `jbig2`.
I used the shell script mentioned in #23659, except I added the line
`-txt -Param -Transposed 1` at the very end of the .ini file.

As with all the symbol test cases, after running

    Meta/jbig2_to_pdf.py -o foo.pdf foo.jb2 399 400

the file opens up ok in Chrome and Firefox (but not Safari), so
maybe it's not completely broken.
Nico Weber 1 năm trước cách đây
mục cha
commit
ce11a34fc6

+ 1 - 0
Tests/LibGfx/TestImageDecoder.cpp

@@ -366,6 +366,7 @@ TEST_CASE(test_jbig2_decode)
         TEST_INPUT("jbig2/bitmap-symbol.jbig2"sv),
         TEST_INPUT("jbig2/bitmap-symbol-textrefine.jbig2"sv),
         TEST_INPUT("jbig2/bitmap-symbol-symbolrefine.jbig2"sv),
+        TEST_INPUT("jbig2/bitmap-symbol-texttranspose.jbig2"sv),
     };
 
     for (auto test_input : test_inputs) {

BIN
Tests/LibGfx/test-inputs/jbig2/bitmap-symbol-texttranspose.jbig2