tree: e1c3c789b75fcda6bf75517d6a945b228dfb5441
  1. directional-text-runs-expected-auralinux.txt
  2. directional-text-runs-expected-blink.txt
  3. directional-text-runs-expected-mac.txt
  4. directional-text-runs-expected-uia-win.txt
  5. directional-text-runs-expected-win.txt
  6. directional-text-runs.in
  7. directional-text-runs.pdf
  8. drop-cap-expected.txt
  9. drop-cap.in
  10. drop-cap.pdf
  11. font-change-expected.txt
  12. font-change.in
  13. font-change.pdf
  14. hello-world-expected-auralinux.txt
  15. hello-world-expected-blink.txt
  16. hello-world-expected-mac.txt
  17. hello-world-expected-uia-win.txt
  18. hello-world-expected-win.txt
  19. hello-world.in
  20. hello-world.pdf
  21. highlights-expected-auralinux.txt
  22. highlights-expected-blink.txt
  23. highlights-expected-mac.txt
  24. highlights-expected-uia-win.txt
  25. highlights-expected-win.txt
  26. highlights-expected.txt
  27. highlights.in
  28. highlights.pdf
  29. image_alt_text-expected-auralinux.txt
  30. image_alt_text-expected-blink.txt
  31. image_alt_text-expected-mac.txt
  32. image_alt_text-expected-uia-win.txt
  33. image_alt_text-expected-win.txt
  34. image_alt_text.in
  35. image_alt_text.pdf
  36. multi-page-expected-auralinux.txt
  37. multi-page-expected-blink.txt
  38. multi-page-expected-mac.txt
  39. multi-page-expected-uia-win.txt
  40. multi-page-expected-win.txt
  41. multi-page.in
  42. multi-page.pdf
  43. next-on-line-expected.txt
  44. next-on-line.in
  45. next-on-line.pdf
  46. overlapping-links-expected-auralinux.txt
  47. overlapping-links-expected-blink.txt
  48. overlapping-links-expected-mac.txt
  49. overlapping-links-expected-uia-win.txt
  50. overlapping-links-expected-win.txt
  51. overlapping-links.in
  52. overlapping-links.pdf
  53. paragraphs-and-heading-untagged-expected-auralinux.txt
  54. paragraphs-and-heading-untagged-expected-blink.txt
  55. paragraphs-and-heading-untagged-expected-mac.txt
  56. paragraphs-and-heading-untagged-expected-uia-win.txt
  57. paragraphs-and-heading-untagged-expected-win.txt
  58. paragraphs-and-heading-untagged-expected.txt
  59. paragraphs-and-heading-untagged.in
  60. paragraphs-and-heading-untagged.pdf
  61. readme.md
  62. superscript-subscript-expected.txt
  63. superscript-subscript.in
  64. superscript-subscript.pdf
  65. text-direction-expected-blink.txt
  66. text-direction.in
  67. text-direction.pdf
  68. text-image-link-expected-auralinux.txt
  69. text-image-link-expected-mac.txt
  70. text-image-link-expected-uia-win.txt
  71. text-image-link-expected-win.txt
  72. text-image-link-expected.txt
  73. text-image-link.in
  74. text-image-link.pdf
  75. text-run-style-heuristic-expected-auralinux.txt
  76. text-run-style-heuristic-expected-blink.txt
  77. text-run-style-heuristic-expected-mac.txt
  78. text-run-style-heuristic-expected-uia-win.txt
  79. text-run-style-heuristic-expected-win.txt
  80. text-run-style-heuristic.in
  81. text-run-style-heuristic.pdf
  82. text-style-expected-auralinux.txt
  83. text-style-expected-blink.txt
  84. text-style-expected-mac.txt
  85. text-style-expected-uia-win.txt
  86. text-style-expected-win.txt
  87. text-style.in
  88. text-style.pdf
  89. weblinks-expected-auralinux.txt
  90. weblinks-expected-blink.txt
  91. weblinks-expected-mac.txt
  92. weblinks-expected-uia-win.txt
  93. weblinks-expected-win.txt
  94. weblinks-expected.txt
  95. weblinks.in
  96. weblinks.pdf
  97. whitespace-expected.txt
  98. whitespace.in
  99. whitespace.pdf
chrome/test/data/pdf/accessibility/readme.md

PdfExtensionAccessibilityTreeDumpTest

A PdfExtensionAccessibilityTreeDumpTest loads a PDF file, waits for it to load, then dumps the accessibility tree. More about accessibility tree dump tests at content/test/data/accessibility/readme.md.

Filters and directives

Please refer to content/test/data/accessibility/readme.md to see how to use filters. Supported filters and directives are:

  • [x] @<platform>-ALLOW:
  • [ ] @<platform>-ALLOW-EMPTY:
  • [ ] @<platform>-DENY:
  • [ ] @WAIT-FOR:

The PdfExtensionAccessibilityTreeDumpTest implementation of extra directives/filters is similar to the DumpAccessibilityTreeTest. If you need to support additional directives/filters, see /src/content/test/data/accessibility/readme.md to respect the same interface as the one used for HTML accessibility tree dump tests.

Implementation details for parsing extra directives in HTML can be found in DumpAccessibilityTestBase::ParseHtmlForExtraDirectives().