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

Issue 9950068: Improve test engine error feedback: (Closed)

Created:
8 years, 8 months ago by aaronlevbugs
Modified:
8 years, 8 months ago
Reviewers:
dmazzoni, David Tseng
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
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Improve test engine error feedback: 1. Don't list files that are different just because of comments 2. Show the line numbers from the expected file where the differences are. 3. Allow *-expected.txt files to be marked as skipped -- if first line of file begins with #<skip 4. Add anchor tests which exercise the test engine and #<skip 5. Add a readme.txt for future developers looking to add tests BUG=120934 TEST=anchor tests exercise the test engine changes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131003

Patch Set 1 #

Total comments: 15

Patch Set 2 :  #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Fix compile error on mac and add temporary mac expectations files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -18 lines) Patch
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 5 chunks +53 lines, -18 lines 0 comments Download
A content/test/data/accessibility/a.html View 1 chunk +5 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-expected-mac.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/a-expected-win.txt View 1 chunk +4 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-name.html View 1 chunk +7 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-name-expected-mac.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/a-name-expected-win.txt View 1 chunk +6 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-onclick.html View 1 chunk +11 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-onclick-expected-mac.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/a-onclick-expected-win.txt View 1 chunk +6 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-with-img.html View 1 chunk +8 lines, -0 lines 0 comments Download
A content/test/data/accessibility/a-with-img-expected-mac.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/a-with-img-expected-win.txt View 1 chunk +17 lines, -0 lines 0 comments Download
A content/test/data/accessibility/readme.txt View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
aaronlevbugs
Ready for review
8 years, 8 months ago (2012-04-02 20:32:52 UTC) #1
David Tseng
http://codereview.chromium.org/9950068/diff/1/content/browser/accessibility/dump_accessibility_tree_browsertest.cc File content/browser/accessibility/dump_accessibility_tree_browsertest.cc (right): http://codereview.chromium.org/9950068/diff/1/content/browser/accessibility/dump_accessibility_tree_browsertest.cc#newcode61 content/browser/accessibility/dump_accessibility_tree_browsertest.cc:61: while (i < actual_lines_count || j < expected_lines_count) { ...
8 years, 8 months ago (2012-04-02 23:29:37 UTC) #2
dmazzoni
I like the diff code except for one case: if the expected file is missing ...
8 years, 8 months ago (2012-04-02 23:43:59 UTC) #3
aaronlevbugs
http://codereview.chromium.org/9950068/diff/1/content/browser/accessibility/dump_accessibility_tree_browsertest.cc File content/browser/accessibility/dump_accessibility_tree_browsertest.cc (right): http://codereview.chromium.org/9950068/diff/1/content/browser/accessibility/dump_accessibility_tree_browsertest.cc#newcode61 content/browser/accessibility/dump_accessibility_tree_browsertest.cc:61: while (i < actual_lines_count || j < expected_lines_count) { ...
8 years, 8 months ago (2012-04-03 02:30:50 UTC) #4
David Tseng
lgtm http://codereview.chromium.org/9950068/diff/5001/content/browser/accessibility/dump_accessibility_tree_browsertest.cc File content/browser/accessibility/dump_accessibility_tree_browsertest.cc (right): http://codereview.chromium.org/9950068/diff/5001/content/browser/accessibility/dump_accessibility_tree_browsertest.cc#newcode185 content/browser/accessibility/dump_accessibility_tree_browsertest.cc:185: printf("%s","\n"); nit: why not printf("\n")
8 years, 8 months ago (2012-04-03 17:15:22 UTC) #5
aaronlevbugs
http://codereview.chromium.org/9950068/diff/5001/content/browser/accessibility/dump_accessibility_tree_browsertest.cc File content/browser/accessibility/dump_accessibility_tree_browsertest.cc (right): http://codereview.chromium.org/9950068/diff/5001/content/browser/accessibility/dump_accessibility_tree_browsertest.cc#newcode185 content/browser/accessibility/dump_accessibility_tree_browsertest.cc:185: printf("%s","\n"); On 2012/04/03 17:15:22, David Tseng wrote: > nit: ...
8 years, 8 months ago (2012-04-03 22:19:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aaronlevbugs@gmail.com/9950068/7002
8 years, 8 months ago (2012-04-03 22:24:09 UTC) #7
commit-bot: I haz the power
Try job failure for 9950068-7002 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-03 23:13:27 UTC) #8
dmazzoni
The compile failures are clearly unrelated to this patch - trying again. On Tue, Apr ...
8 years, 8 months ago (2012-04-04 05:26:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aaronlevbugs@gmail.com/9950068/7002
8 years, 8 months ago (2012-04-04 05:26:50 UTC) #10
commit-bot: I haz the power
Try job failure for 9950068-7002 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-04 06:44:06 UTC) #11
dmazzoni
These look like real compile errors. On Tue, Apr 3, 2012 at 11:44 PM, <commit-bot@chromium.org> ...
8 years, 8 months ago (2012-04-04 06:48:28 UTC) #12
David Tseng
Yes, I pinged Aaron offline. There are also missing Mac expectations. I'll run this through ...
8 years, 8 months ago (2012-04-04 13:35:53 UTC) #13
aaronlevbugs
Ok, boolean->bool -- mental residue from work in another language, and it compiled on Windows ...
8 years, 8 months ago (2012-04-04 15:45:45 UTC) #14
aaronlevbugs
On 2012/04/04 15:45:45, aaronlevbugs wrote: Don't we want the autogenerate expectations feature?
8 years, 8 months ago (2012-04-04 15:56:15 UTC) #15
dmazzoni
I think we don't want to autogenerate expectations on the trybots / buildbots. In particular, ...
8 years, 8 months ago (2012-04-04 16:00:14 UTC) #16
dmazzoni
Oh wait - I don't see the new patch. Did you upload? On Wed, Apr ...
8 years, 8 months ago (2012-04-04 16:03:09 UTC) #17
aaronlevbugs
New patch up. boolean->bool Fake mac expected fiels up for now.
8 years, 8 months ago (2012-04-04 16:24:02 UTC) #18
dmazzoni
The workflow I was proposing was to upload the change, run the try job, then ...
8 years, 8 months ago (2012-04-04 16:25:59 UTC) #19
David Tseng
Note that the files do get auto generated -- they're placed into a temporary location. ...
8 years, 8 months ago (2012-04-04 16:32:56 UTC) #20
David Tseng
We should also note that those expectations (for mac in this instance) have not been ...
8 years, 8 months ago (2012-04-04 16:34:39 UTC) #21
dmazzoni
Yes - if you don't want to validate the Mac roles/states against the accessibility guide ...
8 years, 8 months ago (2012-04-04 16:51:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aaronlevbugs@gmail.com/9950068/13001
8 years, 8 months ago (2012-04-05 05:29:17 UTC) #23
commit-bot: I haz the power
Try job failure for 9950068-13001 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-04-05 08:42:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aaronlevbugs@gmail.com/9950068/13001
8 years, 8 months ago (2012-04-05 15:32:15 UTC) #25
dmazzoni
Argh, trying again... On Thu, Apr 5, 2012 at 1:42 AM, <commit-bot@chromium.org> wrote: > Try ...
8 years, 8 months ago (2012-04-05 15:32:29 UTC) #26
commit-bot: I haz the power
8 years, 8 months ago (2012-04-05 20:32:16 UTC) #27
Change committed as 131003

Powered by Google App Engine
This is Rietveld 408576698