• Aaron Leventhal's avatar
    Support filters for ax_dump_tree_output · 3486ac47
    Aaron Leventhal authored
    The ax_dump_tree output puts out a lot of information, which can be too
    noisy to efficiently read. This supports property filtering as follows:
    
    ax_dump_tree --filters=[FILTERS_TEXT_FILE]
    
    The filters file can have @ALLOW, @ALLOW-EMPTY and @DENY rules, similar
    to the dump accessibility tree browsertests. It is not necessary to have
    a platform prefix (e.g. @WIN- or @MAC-). The role of the object cannot
    be filtered, but any other properties can. If no filters are provided
    then all properties are shown.
    
    Example, to filter out everything except role, name and value, use:
    @ALLOW:name=*
    @ALLOW:value=*
    
    Put each filter on a separate line. For more info on writing rules, see
    https://cs.chromium.org/chromium/src/content/test/data/accessibility/readme.md
    
    Bug: 771747
    Change-Id: If15a5c6f6baf6a1827749dae16825242a0913913
    Reviewed-on: https://chromium-review.googlesource.com/725879
    Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
    Reviewed-by: default avatarNektarios Paisios <nektar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#510171}
    3486ac47
ax_dump_tree.cc 1.86 KB