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

Issue 734343002: Fix bug in the unittest's withTestEnvironment package and apply more feedback from nweiz. (Closed)

Created:
6 years, 1 month ago by wibling
Modified:
6 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix bug in the unittest's withTestEnvironment package and apply more feedback from nweiz. BUG= R=kustermann@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=41798

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : review feedback #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -13 lines) Patch
M pkg/unittest/CHANGELOG.md View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/unittest/lib/src/test_environment.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/unittest/lib/unittest.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/unittest/pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/test/with_test_environment_test.dart View 1 2 2 chunks +54 lines, -6 lines 4 comments Download

Messages

Total messages: 7 (1 generated)
wibling
6 years, 1 month ago (2014-11-18 10:17:23 UTC) #2
Søren Gjesse
lgtm
6 years, 1 month ago (2014-11-18 10:23:51 UTC) #3
kustermann
lgtm https://codereview.chromium.org/734343002/diff/20001/pkg/unittest/test/with_test_environment_test.dart File pkg/unittest/test/with_test_environment_test.dart (right): https://codereview.chromium.org/734343002/diff/20001/pkg/unittest/test/with_test_environment_test.dart#newcode54 pkg/unittest/test/with_test_environment_test.dart:54: test('test1', () => expect(4 + 3, equals(7))); Maybe ...
6 years, 1 month ago (2014-11-18 10:35:37 UTC) #4
wibling
Committed patchset #3 (id:40001) manually as 41798 (presubmit successful).
6 years, 1 month ago (2014-11-18 10:43:03 UTC) #5
nweiz
lgtm https://codereview.chromium.org/734343002/diff/40001/pkg/unittest/test/with_test_environment_test.dart File pkg/unittest/test/with_test_environment_test.dart (right): https://codereview.chromium.org/734343002/diff/40001/pkg/unittest/test/with_test_environment_test.dart#newcode28 pkg/unittest/test/with_test_environment_test.dart:28: .catchError((error, stack) => _completer.completeError(error, stack)); Indent this +4 ...
6 years, 1 month ago (2014-11-19 21:44:18 UTC) #6
wibling
6 years, 1 month ago (2014-11-20 14:34:51 UTC) #7
Message was sent while issue was closed.
Thanks for the review. 

I have sent out a new diff with the changes.

https://codereview.chromium.org/734343002/diff/40001/pkg/unittest/test/with_t...
File pkg/unittest/test/with_test_environment_test.dart (right):

https://codereview.chromium.org/734343002/diff/40001/pkg/unittest/test/with_t...
pkg/unittest/test/with_test_environment_test.dart:28: .catchError((error, stack)
=> _completer.completeError(error, stack));
On 2014/11/19 21:44:18, nweiz wrote:
> Indent this +4 spaces.
> 
> You can write .then(_completer.complete) and
.catchError(_completer.catchError)
> here.

Done.

https://codereview.chromium.org/734343002/diff/40001/pkg/unittest/test/with_t...
pkg/unittest/test/with_test_environment_test.dart:32: for (final t in _results)
{
On 2014/11/19 21:44:18, nweiz wrote:
> We don't use "final" for local variables.
> 
> Also, this method is probably clearer as just "_results.any((test) =>
> test.description == testName)".

Done.

Powered by Google App Engine
This is Rietveld 408576698