Name Description Size Coverage CI issues
browser.toml 487 -
browser_a11yLifecycle.js If the accessibility service is already enabled (in the parent process) before a PDF is exported, it should remain enabled for the entire export. 7558 -
browser_artifacts.js Tests for content that must be marked as a PDF artifact rather than being untagged content or associated with a node in the accessibility tree; e.g. page headers and footers. Since artifacts aren't struct tree elements, this can't be verified via getStructTree(). Instead, this walks the raw marked content operators reported by getTextContent({includeMarkedContent: true}) to check that the relevant content is wrapped in an Artifact tag. 4161 -
browser_outline.js 1135 -
browser_sourceText.js Add a test which renders `markup` using pdfTest.ttf and asserts that the text in the PDF matches `expected`. See getPdfText. If `expected` is a function, it is called with the text instead. 2875 -
browser_structTree.js 13911 -
generate_pdfTest_font.py Generates pdfTest.ttf, a font for PDF output tests. Using this font means the tests don't depend on which fonts are installed. Glyphs which are only reachable via OpenType substitution (e.g. ligatures and script style alternates) have no cmap entry. The font also contains no glyph names at all; the names below are only used while building it. Therefore, the only way a PDF consumer can get the text for these glyphs is via the source text Gecko provides when drawing. Every glyph is drawn as a box, since the tests only check the text. This requires fontTools. To regenerate the font, run: python3 generate_pdfTest_font.py 4733 -
head.js exported addPdfStructTreeTest, addPdfOutlineTest, addPdfTabTask, loadPdfTestDoc, exportPdf, assertPdfStructTree, getPdfText, PDF_TEST_FONT_STYLE, assertPdfUsesTestFont, CommonUtils 12445 -
pdfTest.ttf 2712 -
pdfTest.ttf^headers^ 31 -