1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #14262 from Snuffleupagus/issue-14261

Include the /Lang-property, when it exists, in the StructTree-data (issue 14261)
This commit is contained in:
Brendan Dahl 2021-11-19 07:51:21 -08:00 committed by GitHub
commit c6cb39ef30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View file

@ -1836,6 +1836,7 @@ sozialökonomische Gerechtigkeit.`)
children: [
{
role: "Document",
lang: "en-US",
children: [
{
role: "H1",

View file

@ -19,6 +19,7 @@ import { getDocument } from "../../src/display/api.js";
function equalTrees(rootA, rootB) {
function walk(a, b) {
expect(a.role).toEqual(b.role);
expect(a.lang).toEqual(b.lang);
expect(a.type).toEqual(b.type);
expect("children" in a).toEqual("children" in b);
if (!a.children) {
@ -47,6 +48,7 @@ describe("struct tree", function () {
children: [
{
role: "Document",
lang: "en-US",
children: [
{
role: "H1",