Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Issue 10662003: Allow filters in accessibility tests to specify which attributes to check. (Closed)

Created:
8 years, 6 months ago by dmazzoni
Modified:
8 years, 4 months ago
Reviewers:
David Tseng, jam
CC:
chromium-reviews, hashimoto+watch_chromium.org, jochen+watch-content_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Allow filters in accessibility tests to specify which attributes to check. With this change, a DumpAccessibilityTree test can specify filters to control which attributes are printed. This keeps each test expectation file small and readable, while making it easy to test for all sorts of attributes, including obscure ones. Each platform will have a few attributes that print by default, like the role and name. HTML files add rules of this form to override the defaults: @MAC-DENY:subrole* @MAC-DENY:value* @MAC-ALLOW:description* You can also specify @MAC-ALLOW:* or @WIN-ALLOW:* if you want to dump everything - helpful during development sometimes. BUG=124314 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149510

Patch Set 1 #

Patch Set 2 : Win #

Patch Set 3 : Split into multiple tests #

Patch Set 4 : Remove unneeded files, fix Mac build #

Patch Set 5 : Fix Mac #

Patch Set 6 : Fix Mac expectations #

Patch Set 7 : Add newline so it doesn't look like the test failed when it was just skipped. #

Patch Set 8 : Fix quotes on Mac #

Patch Set 9 : Work around missing webkit strings in content_browsertests for now #

Total comments: 4

Patch Set 10 : Fix repetitive code, re-enable webkit strings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -234 lines) Patch
M content/browser/accessibility/browser_accessibility_win.h View 1 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 5 chunks +161 lines, -101 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper.h View 1 2 4 chunks +35 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper.cc View 1 2 2 chunks +47 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_mac.mm View 1 2 3 4 5 6 7 2 chunks +33 lines, -16 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_win.cc View 1 2 3 2 chunks +49 lines, -18 lines 0 comments Download
M content/common/accessibility_node_data.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/accessibility_test_utils_win.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/test/accessibility_test_utils_win.cc View 1 1 chunk +22 lines, -24 lines 0 comments Download
M content/test/data/accessibility/a.html View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/data/accessibility/a-expected-win.txt View 1 1 chunk +4 lines, -4 lines 0 comments Download
M content/test/data/accessibility/aria-application.html View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/data/accessibility/aria-application-expected-mac.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria-application-expected-win.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/contenteditable-descendants.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/test/data/accessibility/contenteditable-descendants-expected-win.txt View 1 2 1 chunk +21 lines, -21 lines 0 comments Download
M content/test/data/accessibility/footer.html View 1 2 3 4 5 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/data/accessibility/footer-expected-mac.txt View 1 2 3 4 5 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/footer-expected-win.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/data/accessibility/list-markers-expected-mac.txt View 1 2 3 4 5 1 chunk +17 lines, -17 lines 0 comments Download
M content/test/data/accessibility/ul-expected-mac.txt View 1 2 3 4 5 1 chunk +11 lines, -11 lines 0 comments Download
M content/test/data/accessibility/ul-expected-win.txt View 1 1 chunk +11 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dmazzoni
Not ready for actual review, just looking for feedback. Drive-bys welcome. David, I'd like to ...
8 years, 6 months ago (2012-06-22 22:45:19 UTC) #1
David Tseng
Looks like a good approach. First question, do we want global filters or do we ...
8 years, 6 months ago (2012-06-26 00:01:00 UTC) #2
dmazzoni
PTAL, I think this is finally complete. On 2012/06/26 00:01:00, David Tseng wrote: > Looks ...
8 years, 4 months ago (2012-07-27 21:47:51 UTC) #3
David Tseng
lgtm http://codereview.chromium.org/10662003/diff/6008/content/browser/accessibility/dump_accessibility_tree_browsertest.cc File content/browser/accessibility/dump_accessibility_tree_browsertest.cc (right): http://codereview.chromium.org/10662003/diff/6008/content/browser/accessibility/dump_accessibility_tree_browsertest.cc#newcode222 content/browser/accessibility/dump_accessibility_tree_browsertest.cc:222: IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityA) { nit: Do we really want ...
8 years, 4 months ago (2012-07-31 17:04:16 UTC) #4
dmazzoni
Thanks! Two inline response below: On Tue, Jul 31, 2012 at 10:04 AM, <dtseng@chromium.org> wrote: ...
8 years, 4 months ago (2012-07-31 17:14:04 UTC) #5
David Tseng
On Tue, Jul 31, 2012 at 10:14 AM, Dominic Mazzoni <dmazzoni@chromium.org> wrote: > Thanks! Two ...
8 years, 4 months ago (2012-07-31 18:51:39 UTC) #6
dmazzoni
On Tue, Jul 31, 2012 at 11:51 AM, David Tseng <dtseng@chromium.org> wrote: > This is ...
8 years, 4 months ago (2012-07-31 18:56:03 UTC) #7
dmazzoni
+jam for OWNERS review
8 years, 4 months ago (2012-08-01 07:44:09 UTC) #8
jam
lgtm for files outside of accessibility dirs
8 years, 4 months ago (2012-08-01 20:26:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/10662003/17025
8 years, 4 months ago (2012-08-01 20:33:57 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-01 22:07:10 UTC) #11
Change committed as 149510

Powered by Google App Engine
This is Rietveld 408576698