mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibPDF: Add (automated!) test for outline encoding
Manually added an Outlines dict with three items, one each for every text string encoding in its title. (Preview.app apparently can't handle UTF-8 in outlines either.)
This commit is contained in:
parent
d345c5b793
commit
8ee0c75f43
2 changed files with 38 additions and 11 deletions
|
@ -57,6 +57,13 @@ TEST_CASE(encodig)
|
|||
|
||||
// FIXME: Make this pass.
|
||||
// EXPECT_EQ(MUST(info_dict.title()).value(), (char const*)u8"Êñ©•ding test");
|
||||
|
||||
auto outline_dict = document->outline();
|
||||
EXPECT_EQ(outline_dict->count, 3u);
|
||||
EXPECT_EQ(outline_dict->children[0]->title, (char const*)u8"Titlè 1");
|
||||
// FIXME: Make this pass:
|
||||
// EXPECT_EQ(outline_dict->children[1]->title, (char const*)u8"Titlè 2");
|
||||
EXPECT_EQ(outline_dict->children[2]->title, (char const*)u8"Titlè 3");
|
||||
}
|
||||
|
||||
TEST_CASE(truncated_pdf_header_issue_10717)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue