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

Issue 1780623002: Clean up some copy/paste in a test. (Closed)

Created:
4 years, 9 months ago by Bob Nystrom
Modified:
4 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up some copy/paste in a test. Almost all of these tests had the same few steps, so I pulled that out into a helper function and used that. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/528f6c01a7b1a875f3e8cd972092d841b3d438b2

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+766 lines, -883 lines) Patch
M pkg/analyzer/test/generated/resolver_test.dart View 2 chunks +12 lines, -1 line 0 comments Download
M pkg/analyzer/test/generated/static_type_warning_code_test.dart View 32 chunks +754 lines, -882 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Bob Nystrom
4 years, 9 months ago (2016-03-09 01:25:15 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1780623002/diff/1/pkg/analyzer/test/generated/static_type_warning_code_test.dart File pkg/analyzer/test/generated/static_type_warning_code_test.dart (right): https://codereview.chromium.org/1780623002/diff/1/pkg/analyzer/test/generated/static_type_warning_code_test.dart#newcode26 pkg/analyzer/test/generated/static_type_warning_code_test.dart:26: // TODO(rnystrom): This doesn't look right. Note that ...
4 years, 9 months ago (2016-03-09 01:37:38 UTC) #3
Bob Nystrom
Committed patchset #1 (id:1) manually as 528f6c01a7b1a875f3e8cd972092d841b3d438b2 (presubmit successful).
4 years, 9 months ago (2016-03-09 01:40:50 UTC) #5
Bob Nystrom
4 years, 9 months ago (2016-03-09 01:46:47 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1780623002/diff/1/pkg/analyzer/test/generated...
File pkg/analyzer/test/generated/static_type_warning_code_test.dart (right):

https://codereview.chromium.org/1780623002/diff/1/pkg/analyzer/test/generated...
pkg/analyzer/test/generated/static_type_warning_code_test.dart:26: //
TODO(rnystrom): This doesn't look right.
On 2016/03/09 01:37:38, Brian Wilkerson wrote:
> Note that the method's name is "fail", indicating that the test is expected to
> fail. What this likely means is that someone wrote the skeleton of a test for
> the INACCESSIBLE_SETTER warning, but forgot to come back and write test code
for
> it.

That's what I figured. :) Tests that are just expected to fail in some blanket
way tend to be brittle to code rot in that way.

Powered by Google App Engine
This is Rietveld 408576698