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

Issue 10545167: Some unit test fixes: (Closed)

Created:
8 years, 6 months ago by gram
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Some unit test fixes: Fixed a couple of issues in the ensureInitialized() function. Added expectAsyncUntil methods to support callbackDone style tests. Split the matcher tests up so that we can exclude those that use isInstance from the environments where they don't work. Eliminated the need for two functions calls in throws/throwsA. Fixed a couple of tests. Committed: https://code.google.com/p/dart/source/detail?r=8668

Patch Set 1 #

Patch Set 2 : #

Total comments: 46

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -557 lines) Patch
M lib/unittest/core_matchers.dart View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M lib/unittest/unittest.dart View 1 2 3 4 6 chunks +119 lines, -34 lines 0 comments Download
M tests/isolate/v2_unresolved_ports_negative_test.dart View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A tests/lib/unittest/instance_test.dart View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A + tests/lib/unittest/matchers_test.dart View 1 2 3 chunks +4 lines, -54 lines 0 comments Download
A tests/lib/unittest/test_utils.dart View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
D tests/utils/unittest_test.dart View 1 2 3 4 1 chunk +0 lines, -457 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
gram
PTAL at these. For now I have backed out all my tests of the unit ...
8 years, 6 months ago (2012-06-13 23:30:48 UTC) #1
Siggi Cherem (dart-lang)
http://codereview.chromium.org/10545167/diff/10/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): http://codereview.chromium.org/10545167/diff/10/lib/unittest/unittest.dart#newcode306 lib/unittest/unittest.dart:306: _Init(Function callback, Function shouldCallBack, Function isDone, -> lower case. ...
8 years, 6 months ago (2012-06-13 23:43:53 UTC) #2
Bob Nystrom
Some style nits. The asyncUntil stuff will be nice when it's in. http://codereview.chromium.org/10545167/diff/10/lib/unittest/unittest.dart File lib/unittest/unittest.dart ...
8 years, 6 months ago (2012-06-13 23:52:29 UTC) #3
gram
PTAL. http://codereview.chromium.org/10545167/diff/10/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): http://codereview.chromium.org/10545167/diff/10/lib/unittest/unittest.dart#newcode157 lib/unittest/unittest.dart:157: /** Set the [Configuration] used by the unittest ...
8 years, 6 months ago (2012-06-14 00:50:58 UTC) #4
Bob Nystrom
8 years, 6 months ago (2012-06-14 01:00:49 UTC) #5
One nit. Otherwise LGTM.

http://codereview.chromium.org/10545167/diff/13/lib/unittest/unittest.dart
File lib/unittest/unittest.dart (right):

http://codereview.chromium.org/10545167/diff/13/lib/unittest/unittest.dart#ne...
lib/unittest/unittest.dart:306: _Init(Function callback, Function
shouldCallBack, Function isDone,
_init

Powered by Google App Engine
This is Rietveld 408576698