Skip to content

Commit

Permalink
Tests/JBIG2: Add tests for transposed non-topleft text reference corners
Browse files Browse the repository at this point in the history
This needed the same `jbig2` changes as for the non-transposed ones,
and the changes to it mentioned on SerenityOS#23780.

I used the same .ini files as for the non-transposed ones, except
that I added `-txt -Param -Transposed 1` as last line to each of them.

All three new files display fine in Chrome.
They all look busted in Firefox.
I think this is likey a bug in pdf.js that I'll report upstream.
(Reportedly they look fine in Acrobat on Android.)
  • Loading branch information
nico committed Apr 2, 2024
1 parent 432ad69 commit 8ba11cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/LibGfx/TestImageDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,11 @@ TEST_CASE(test_jbig2_decode)
TEST_INPUT("jbig2/bitmap-symbol-textrefine.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-symbolrefine.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-textbottomleft.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-textbottomlefttranspose.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-textbottomright.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-textbottomrighttranspose.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-texttopright.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-texttoprighttranspose.jbig2"sv),
TEST_INPUT("jbig2/bitmap-symbol-texttranspose.jbig2"sv),
};

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 8ba11cf

Please sign in to comment.