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

Issue 9617019: Improve formatting of accessibility tests that dump the tree. (Closed)

Created:
8 years, 9 months ago by dmazzoni
Modified:
8 years, 9 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, jam, 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, aboxhall, aaronlevbugs
Visibility:
Public.

Description

Re-land: Improve formatting of accessibility tests that dump the tree. Adds indentation, uses more readable notation. Adds one new test for static lists to illustrate the indentations. BUG=none TEST=Adds new test Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125898 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126105

Patch Set 1 #

Patch Set 2 : add missing files #

Total comments: 12

Patch Set 3 : Address comments from dtseng and add more debugging feedback #

Patch Set 4 : Fix win typo #

Patch Set 5 : Fix win typo #

Patch Set 6 : Fix two win errors and rebaseline one Windows test #

Patch Set 7 : Fix Linux build error, tolerate different line endings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -39 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 4 chunks +23 lines, -7 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper.h View 2 chunks +10 lines, -9 lines 0 comments Download
A content/browser/accessibility/dump_accessibility_tree_helper.cc View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_mac.mm View 2 chunks +9 lines, -10 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_helper_win.cc View 1 2 3 4 5 6 3 chunks +11 lines, -9 lines 0 comments Download
M content/test/data/accessibility/aria-application-expected-mac.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/aria-application-expected-win.txt View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
A content/test/data/accessibility/ul.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
A content/test/data/accessibility/ul-expected-mac.txt View 1 1 chunk +11 lines, -0 lines 0 comments Download
A content/test/data/accessibility/ul-expected-win.txt View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
dmazzoni
dtseng: primary review Suggestions from Alice & Aaron welcome. This is just the first step, ...
8 years, 9 months ago (2012-03-06 21:29:46 UTC) #1
David Tseng
http://codereview.chromium.org/9617019/diff/2001/content/browser/accessibility/dump_accessibility_tree_helper.cc File content/browser/accessibility/dump_accessibility_tree_helper.cc (right): http://codereview.chromium.org/9617019/diff/2001/content/browser/accessibility/dump_accessibility_tree_helper.cc#newcode13 content/browser/accessibility/dump_accessibility_tree_helper.cc:13: nit: extra line. http://codereview.chromium.org/9617019/diff/2001/content/browser/accessibility/dump_accessibility_tree_helper.cc#newcode18 content/browser/accessibility/dump_accessibility_tree_helper.cc:18: for (int i = ...
8 years, 9 months ago (2012-03-06 23:49:05 UTC) #2
dmazzoni
PTAL; I addressed or responded to all of your feedback. I also added a little ...
8 years, 9 months ago (2012-03-08 07:10:37 UTC) #3
David Tseng
> [NSString stringWithFormat:@"%s%@ subrole=%@ title='%@' value='%@'\n", > On 2012/03/06 23:49:05, David Tseng wrote: >> Could ...
8 years, 9 months ago (2012-03-08 17:47:41 UTC) #4
dmazzoni
On Thu, Mar 8, 2012 at 9:47 AM, David Tseng <dtseng@chromium.org> wrote: > I'm probably ...
8 years, 9 months ago (2012-03-08 17:48:52 UTC) #5
David Tseng
lgtm with those changes; thanks. On 3/8/12, Dominic Mazzoni <dmazzoni@chromium.org> wrote: > On Thu, Mar ...
8 years, 9 months ago (2012-03-08 18:57:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/9617019/14001
8 years, 9 months ago (2012-03-09 19:49:56 UTC) #7
commit-bot: I haz the power
Can't apply patch for file content/test/data/accessibility/aria-application-expected-win.txt. While running patch -p1 --forward --force; patching file content/test/data/accessibility/aria-application-expected-win.txt ...
8 years, 9 months ago (2012-03-09 19:49:59 UTC) #8
dmazzoni
(Committed manually. I think "patch" had trouble with the line endings on the win expectations ...
8 years, 9 months ago (2012-03-09 21:10:45 UTC) #9
Ilya Sherman
This broke compile on Linux, so had to be reverted: http://build.chromium.org/p/chromium/builders/Linux%20Builder%20%28dbg%29%28shared%29/builds/19714/steps/compile/logs/stdio
8 years, 9 months ago (2012-03-09 21:24:14 UTC) #10
dmazzoni
Argh! Thanks for reverting. I should have done a try job on Linux too. The ...
8 years, 9 months ago (2012-03-09 22:23:06 UTC) #11
Ilya Sherman
On Fri, Mar 9, 2012 at 2:23 PM, Dominic Mazzoni <dmazzoni@chromium.org>wrote: > Argh! Thanks for ...
8 years, 9 months ago (2012-03-09 22:31:09 UTC) #12
David Tseng
Apparently the same > issue also caused the browser test to fail on win - ...
8 years, 9 months ago (2012-03-09 22:37:37 UTC) #13
David Tseng
Meant to say that the try bots always displayed the *expected.txt files as crlf even ...
8 years, 9 months ago (2012-03-09 22:45:29 UTC) #14
Ilya Sherman
On Fri, Mar 9, 2012 at 2:45 PM, David Tseng <dtseng@chromium.org> wrote: > Meant to ...
8 years, 9 months ago (2012-03-09 22:49:32 UTC) #15
dmazzoni
Sounds good, will do. I suspect the problem is if one of the test or ...
8 years, 9 months ago (2012-03-09 22:50:35 UTC) #16
David Tseng
On 3/9/12, Dominic Mazzoni <dmazzoni@chromium.org> wrote: > Sounds good, will do. > Cool; sounds good. ...
8 years, 9 months ago (2012-03-09 23:50:26 UTC) #17
dmazzoni
8 years, 9 months ago (2012-03-12 21:18:02 UTC) #18
For the record: re-landed successfully.

On Fri, Mar 9, 2012 at 3:50 PM, David Tseng <dtseng@chromium.org> wrote:

> On 3/9/12, Dominic Mazzoni <dmazzoni@chromium.org> wrote:
> > Sounds good, will do.
> >
> Cool; sounds good.
> > I suspect the problem is if one of the test or build machines doesn't
> have
> > its line endings set the same way. For example, a trybot or buildbot
> could
> > be in a mode that converts all (non-binary) files to crlf consistently
> > without causing any problems elsewhere.
> >
> > Maybe the easiest thing will be to just have a line-ending-aware
> comparison
> > function? You were adding a custom diff anyway, so it'd be pretty
> trivial.
> >
> > - Dominic
> >
> > On Fri, Mar 9, 2012 at 2:45 PM, David Tseng <dtseng@chromium.org> wrote:
> >
> >> Meant to say that the try bots always displayed the *expected.txt
> >> files as crlf even when the patch converted everything to lf's.
> >>
> >> Anyhow, if you can get it to pass on the try bots using unix style
> >> line endings, please go for it.
> >>
> >> Thanks.
> >> On 3/9/12, David Tseng <dtseng@chromium.org> wrote:
> >> > Apparently the same
> >> >> issue also caused the browser test to fail on win - the expected
> file's
> >> >> line endings got changed in the patch.
> >> >>
> >> >> David, what would you think about just switching to unix line
> endings,
> >> >> even
> >> >> on Windows, so that it isn't so much trouble to patch? Unless you
> have
> >> >> another solution. Maybe the file could be marked as binary in svn,
> but
> >> >> can
> >> >> we do that from a git patch too? Would that work when unix 'patch' is
> >> >> used,
> >> >> like on the try servers?
> >> >
> >> > I had lots of trouble with this which is why I explicitly added the
> >> > methods to get platform line endings. Git doesn't seem to respect the
> >> > endings for the expectations files -- it _always_ uses crlf no matter
> >> > what combination of git config autocrlf (true, false, auto, etc) I
> >> > tried in the past when paired with all either crlf or just lf's for
> >> > the expectations.
> >> >
> >> >
> >> > I haven't looked, but did you change
> >> > dump_accessibility_tree_browsertests accumulation of the individual
> >> > lines (including calling GetLineEnding)?
> >> >
> >> > - David
> >> >
> >>
> >
>

Powered by Google App Engine
This is Rietveld 408576698