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

Issue 2492733003: New documentation on writing LayoutTests. (Closed)

Created:
4 years, 1 month ago by pwnall
Modified:
4 years ago
CC:
chromium-reviews, jeffcarp
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

New documentation on writing LayoutTests. This CL pulls out the content on writing LayoutTests from layout_tests.md, and does a significant overhaul of it. BUG=665494 Committed: https://crrev.com/4ea2eb3e13b7d1ee654d54528c96fb73371ee1bf Cr-Commit-Position: refs/heads/master@{#434842}

Patch Set 1 : New documentation on writing LayoutTests. #

Total comments: 22

Patch Set 2 : Addressed spark feedback. #

Total comments: 15

Patch Set 3 : Addressed jsbell feedback. #

Patch Set 4 : Documented test types and legacy reftests. #

Total comments: 33

Patch Set 5 : Addressed qyearsley's feedback. #

Total comments: 82

Patch Set 6 : Addressed most of foolip's feedback. #

Total comments: 19

Patch Set 7 : Added strict mode recommendation, fixed errors it highlighted. #

Total comments: 8

Patch Set 8 : Addressed feedback from foolip, qyearsley, rbyers. #

Total comments: 35

Patch Set 9 : Addressed some of eae's feedback. #

Patch Set 10 : More tweaks in response to eae's feedback. #

Total comments: 24

Patch Set 11 : Addresses spark's grammar feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+800 lines, -94 lines) Patch
M docs/testing/layout_tests.md View 1 2 3 4 4 chunks +13 lines, -94 lines 0 comments Download
A docs/testing/writing_layout_tests.md View 1 2 3 4 5 6 7 8 9 10 1 chunk +787 lines, -0 lines 0 comments Download

Messages

Total messages: 67 (22 generated)
pwnall
spark008: Can you please do a grammar review?
4 years, 1 month ago (2016-11-10 10:21:01 UTC) #3
spark
https://codereview.chromium.org/2492733003/diff/20001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/20001/docs/testing/layout_test_writing.md#newcode30 docs/testing/layout_test_writing.md:30: should be avoided so it is clear what is ...
4 years, 1 month ago (2016-11-10 11:00:12 UTC) #4
pwnall
spark: Thank you very much for the quick turnaround, and for finding so many mistakes! ...
4 years, 1 month ago (2016-11-10 16:47:14 UTC) #5
jsbell
drive-by... https://codereview.chromium.org/2492733003/diff/40001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/40001/docs/testing/layout_test_writing.md#newcode5 docs/testing/layout_test_writing.md:5: and we use it to refer to every ...
4 years, 1 month ago (2016-11-10 19:32:26 UTC) #7
pwnall
jsbell: Thank you for the quick turnaround and for the thoughtful feedback! https://codereview.chromium.org/2492733003/diff/40001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md ...
4 years, 1 month ago (2016-11-11 20:51:07 UTC) #8
pwnall
rbyers@, foolip@: Can you please take a look? Everything except for the HTTP tests section ...
4 years, 1 month ago (2016-11-11 21:02:18 UTC) #10
jsbell
https://codereview.chromium.org/2492733003/diff/40001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/40001/docs/testing/layout_test_writing.md#newcode215 docs/testing/layout_test_writing.md:215: ### Tests that use an HTTP Server On 2016/11/11 ...
4 years, 1 month ago (2016-11-14 19:12:22 UTC) #11
pwnall
rbyers@, foolip@: Ping? Can you please take a look and see if the testing instructions ...
4 years, 1 month ago (2016-11-15 18:12:54 UTC) #13
qyearsley
Thanks for writing this -- A few quick questions/comments: https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md#newcode1 docs/testing/layout_test_writing.md:1: ...
4 years, 1 month ago (2016-11-15 18:40:56 UTC) #15
jeffcarp
https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md#newcode208 docs/testing/layout_test_writing.md:208: <meta name="assert" content="Event.isTrusted value under certain situations" /> On ...
4 years, 1 month ago (2016-11-15 19:08:17 UTC) #17
pwnall
qyearsley: Thank you very much for taking a look at this CL! I think it's ...
4 years, 1 month ago (2016-11-16 01:50:39 UTC) #20
foolip
https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md#newcode5 docs/testing/layout_test_writing.md:5: and we use it to refer to every test ...
4 years, 1 month ago (2016-11-16 11:59:53 UTC) #21
foolip
Very nice, thank you for working on this. I left very many comments, let's see ...
4 years, 1 month ago (2016-11-16 13:42:39 UTC) #22
qyearsley
https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md File docs/testing/layout_test_writing.md (right): https://codereview.chromium.org/2492733003/diff/80001/docs/testing/layout_test_writing.md#newcode5 docs/testing/layout_test_writing.md:5: and we use it to refer to every test ...
4 years, 1 month ago (2016-11-16 18:35:45 UTC) #23
pwnall
foolip@: Thank you very much for the thorough review! I hope I've addressed most of ...
4 years, 1 month ago (2016-11-18 05:40:44 UTC) #24
foolip
LGTM % a few more nits, and there are a few points which I think ...
4 years, 1 month ago (2016-11-18 11:30:40 UTC) #25
foolip
https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md#newcode496 docs/testing/writing_layout_tests.md:496: Chromium's testing infrastructure does not support WPT reftests. In ...
4 years, 1 month ago (2016-11-18 11:31:42 UTC) #26
qyearsley
https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md#newcode496 docs/testing/writing_layout_tests.md:496: Chromium's testing infrastructure does not support WPT reftests. In ...
4 years, 1 month ago (2016-11-18 18:02:08 UTC) #27
foolip
https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md#newcode496 docs/testing/writing_layout_tests.md:496: Chromium's testing infrastructure does not support WPT reftests. In ...
4 years, 1 month ago (2016-11-21 09:45:02 UTC) #29
Rick Byers
Sorry for the long delay in reviewing this! I missed it in my daily codereview ...
4 years, 1 month ago (2016-11-21 22:37:15 UTC) #31
Rick Byers
Oh and LGTM if you want to go ahead and land this now - seems ...
4 years, 1 month ago (2016-11-21 22:39:03 UTC) #32
Rick Byers
On 2016/11/21 22:37:15, Rick Byers wrote: > Sorry for the long delay in reviewing this! ...
4 years, 1 month ago (2016-11-21 22:40:05 UTC) #33
pwnall
foolip, qyearsley, rbyers: Thank you very much for your feedback! I learned a lot, and ...
4 years, 1 month ago (2016-11-22 20:32:55 UTC) #38
pwnall
eae@: Can you please make a quick pass and point out egregious mistakes? Please focus ...
4 years, 1 month ago (2016-11-22 20:34:45 UTC) #40
eae
Overall this looks great but there are a number of things that struck me as ...
4 years, 1 month ago (2016-11-22 21:53:12 UTC) #41
eae
Also, thank you so much for working on this! This is something that we all ...
4 years, 1 month ago (2016-11-22 22:01:58 UTC) #42
foolip
https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/160001/docs/testing/writing_layout_tests.md#newcode199 docs/testing/writing_layout_tests.md:199: assert_equal(!value, false, 'the logical negtion of true'); On 2016/11/22 ...
4 years, 1 month ago (2016-11-23 09:23:59 UTC) #43
foolip
https://codereview.chromium.org/2492733003/diff/300001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/300001/docs/testing/writing_layout_tests.md#newcode145 docs/testing/writing_layout_tests.md:145: * Tests should prefer **modern features** in JavaScript and ...
4 years, 1 month ago (2016-11-23 09:39:23 UTC) #44
eae
On Wed, Nov 23, 2016 at 1:39 AM, <foolip@chromium.org> wrote: > > https://codereview.chromium.org/2492733003/diff/300001/docs/testing/writing_layout_tests.md > File ...
4 years ago (2016-11-23 19:11:01 UTC) #45
foolip
On 2016/11/23 19:11:01, eae wrote: > On Wed, Nov 23, 2016 at 1:39 AM, <mailto:foolip@chromium.org> ...
4 years ago (2016-11-23 19:26:24 UTC) #46
pwnall
eae: Thank you very much for the feedback, and for your expertise around layout tests! ...
4 years ago (2016-11-24 03:39:22 UTC) #48
foolip
https://codereview.chromium.org/2492733003/diff/300001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/300001/docs/testing/writing_layout_tests.md#newcode145 docs/testing/writing_layout_tests.md:145: * Tests should prefer **modern features** in JavaScript and ...
4 years ago (2016-11-24 08:52:57 UTC) #49
eae
On Thu, Nov 24, 2016 at 3:39 AM, <pwnall@chromium.org> wrote: > eae: Thank you very ...
4 years ago (2016-11-25 17:06:10 UTC) #50
pwnall
I made a few more adjustments and responded to some points. I tried to remove ...
4 years ago (2016-11-28 23:51:33 UTC) #51
spark
Final grammar review. https://codereview.chromium.org/2492733003/diff/360001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/360001/docs/testing/writing_layout_tests.md#newcode56 docs/testing/writing_layout_tests.md:56: system settings. For this reason, it ...
4 years ago (2016-11-29 00:57:48 UTC) #52
pwnall
spark: Thank you very much for the feedback! https://codereview.chromium.org/2492733003/diff/360001/docs/testing/writing_layout_tests.md File docs/testing/writing_layout_tests.md (right): https://codereview.chromium.org/2492733003/diff/360001/docs/testing/writing_layout_tests.md#newcode56 docs/testing/writing_layout_tests.md:56: system ...
4 years ago (2016-11-29 01:19:23 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2492733003/380001
4 years ago (2016-11-29 01:20:29 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:380001)
4 years ago (2016-11-29 02:48:01 UTC) #59
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/4ea2eb3e13b7d1ee654d54528c96fb73371ee1bf Cr-Commit-Position: refs/heads/master@{#434842}
4 years ago (2016-11-29 02:53:33 UTC) #61
eae
I'm *very* disappointed that you landed this with so many unresolved issues and active points ...
4 years ago (2016-12-01 12:03:26 UTC) #62
foolip
On 2016/12/01 12:03:26, eae wrote: > I'm *very* disappointed that you landed this with so ...
4 years ago (2016-12-01 12:26:11 UTC) #63
jsbell
On 2016/12/01 12:26:11, foolip wrote: > https://codereview.chromium.org/2492733003/#msg50 could easily be taken as > approving of ...
4 years ago (2016-12-01 20:09:02 UTC) #64
pwnall
On 2016/12/01 12:03:26, eae wrote: > I'm *very* disappointed that you landed this with so ...
4 years ago (2016-12-02 01:57:14 UTC) #65
eae
On 2016/12/02 01:57:14, pwnall wrote: > On 2016/12/01 12:03:26, eae wrote: > > I'm *very* ...
4 years ago (2016-12-02 10:07:20 UTC) #66
pwnall
4 years ago (2016-12-02 17:46:22 UTC) #67
Message was sent while issue was closed.
On 2016/12/02 10:07:20, eae wrote:
> On 2016/12/02 01:57:14, pwnall wrote:
> > On 2016/12/01 12:03:26, eae wrote:
> > > I'm *very* disappointed that you landed this with so many unresolved
issues
> > and
> > > active points of contention. Of seven reviews only two gave a LGTM and you
> > > landed this despite a number of open issues. 
> > 
> > I'm sorry to have disappointed and upset you!
> > 
> > I interpreted the "SGTM" in
https://codereview.chromium.org/2492733003/#msg50
> as
> > you being OK with the CL being shipped.
> > 
> > Regarding other reviewers: jsbell agreed with shipping the CL in a private
> > conversation. spark provided grammar reviews as a personal favor, and did
not
> > expect to have to LGTM. qyearsley and jeffcarp provided drive-by reviews,
and
> I
> > think that their comments were addressed. I am grateful for all the
feedback,
> > and I think it led to a much better write-up than the version I started
with.
> > 
> > > Please revert and study our code review policy before attempting to
re-land.
> > 
> > The document added by this CL is linked in a blink-dev discussion [1].
> Reverting
> > the CL would cause that link to 404, so I think it'd do more harm than good
at
> > this point. Given the wide reach of blink-dev, I think it is highly unlikely
> > that a developer would mistakenly think that the guidelines in the document
> are
> > cast in stone, and I can't think of any other major downside to having the
> draft
> > live in the repository. On the flip side, having this committed means that
> folks
> > can review the rendered Markdown, which is much easier on the eyes than the
> > large block of green shown by Rietveld.
> > 
> > Regarding code review policy: FWIW, I think that committing the CL falls
under
> > the "Prefer the good over the perfect" guideline in [2], whose repository is
> > linked from [3].
> 
> I'm sorry but that is *entirely* irrelevant.
> Intentionally landing a change over the objection of a reviewer and without
> addressing outstanding concerns is a clear violation of our code review
policy.
> I can't believe we're even having a discussion about this.

I'm sorry I wasn't clear in my earlier message.

I don't think that I _intentionally_ landed the change over your objections. As
I mentioned before, I interpreted the "SGTM" in
https://codereview.chromium.org/2492733003/#msg50 as you being OK with the CL
being shipped.

I did land the change knowing that there are outstanding concerns, because I
thought those concerns should be brought up for discussion in a wider forum
(blink-dev). I started a thread on blink-dev shortly after the CL landed. This
is where I'm invoking "good over perfect". I think this is working out, as the
document is improved, and folks are voicing their opinions and reasons.

I'm sorry you feel that your concerns were not addressed. I have no intention of
ignoring the points you brought up -- I marked them (hopefully more clearly the
2nd time around) in the document, and I brought them over to blink-dev.

I worry that I lost track of some concerns. The CL was getting difficult to
manage due to the large number of comments. If there's anything that fell
through the cracks, please do bring it up on blink-dev!

Powered by Google App Engine
This is Rietveld 408576698