• Nektarios Paisios's avatar
    Enables writing selection tests using HTML files · 3c88080a
    Nektarios Paisios authored
    Selection tests are stored under blink/renderer/modules/accessibility/testing/data/selection
    There are three files per selection test:
    <testname>.html - the actual HTML to be tested. AXSelection::SetSelection will be used to set the selection.
    <test_name>_dom.html - The selection resulting from AXSelection::GetSelection on the selection that the first file has produced.
    <test_name>-ax.txt - The resulting accessibility tree.
    The test framework will use the embedded selection markers "^" and "|" in the HTML to:
    A) set the selection specified in the first file and compare it with the selection in the "dom" file.
    B) Dump the accessibility tree after applying the selection and compare it with the tree in the "ax" file.
    R=dmazzoni@chromium.org
    
    Change-Id: I7c3c9e3a1eb222aac0afb69d1c4ffa2247a9cd49
    Reviewed-on: https://chromium-review.googlesource.com/c/1240633
    Commit-Queue: Nektarios Paisios <nektar@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
    Reviewed-by: default avatarNektarios Paisios <nektar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#605382}
    3c88080a
ax_range.h 2.17 KB