tree: c2a091d1fea9a8876a09fe42927cd2d7693add34 [path history] [tgz]
  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. image_alt_text-expected-auralinux.txt
  22. image_alt_text-expected-blink.txt
  23. image_alt_text-expected-mac.txt
  24. image_alt_text-expected-uia-win.txt
  25. image_alt_text-expected-win.txt
  26. image_alt_text.in
  27. image_alt_text.pdf
  28. multi-page-expected-auralinux.txt
  29. multi-page-expected-blink.txt
  30. multi-page-expected-mac.txt
  31. multi-page-expected-uia-win.txt
  32. multi-page-expected-win.txt
  33. multi-page.in
  34. multi-page.pdf
  35. next-on-line-expected.txt
  36. next-on-line.in
  37. next-on-line.pdf
  38. paragraphs-and-heading-untagged-expected-auralinux.txt
  39. paragraphs-and-heading-untagged-expected-blink.txt
  40. paragraphs-and-heading-untagged-expected-mac.txt
  41. paragraphs-and-heading-untagged-expected-uia-win.txt
  42. paragraphs-and-heading-untagged-expected-win.txt
  43. paragraphs-and-heading-untagged-expected.txt
  44. paragraphs-and-heading-untagged.in
  45. paragraphs-and-heading-untagged.pdf
  46. readme.md
  47. superscript-subscript-expected.txt
  48. superscript-subscript.in
  49. superscript-subscript.pdf
  50. text-direction-expected-blink.txt
  51. text-direction.in
  52. text-direction.pdf
  53. text-image-link-expected-auralinux.txt
  54. text-image-link-expected-mac.txt
  55. text-image-link-expected-uia-win.txt
  56. text-image-link-expected-win.txt
  57. text-image-link-expected.txt
  58. text-image-link.in
  59. text-image-link.pdf
  60. text-run-style-heuristic-expected-auralinux.txt
  61. text-run-style-heuristic-expected-blink.txt
  62. text-run-style-heuristic-expected-mac.txt
  63. text-run-style-heuristic-expected-uia-win.txt
  64. text-run-style-heuristic-expected-win.txt
  65. text-run-style-heuristic.in
  66. text-run-style-heuristic.pdf
  67. text-style-expected-auralinux.txt
  68. text-style-expected-blink.txt
  69. text-style-expected-mac.txt
  70. text-style-expected-uia-win.txt
  71. text-style-expected-win.txt
  72. text-style.in
  73. text-style.pdf
  74. weblinks-expected-auralinux.txt
  75. weblinks-expected-blink.txt
  76. weblinks-expected-mac.txt
  77. weblinks-expected-uia-win.txt
  78. weblinks-expected-win.txt
  79. weblinks-expected.txt
  80. weblinks.in
  81. weblinks.pdf
  82. whitespace-expected.txt
  83. whitespace.in
  84. 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().