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

Issue 10548005: Add matchers for unit testing futures: (Closed)

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

Description

Add matchers for unit testing futures: - completes - completion() Also made throws and throwsA() work with futures. Committed: https://code.google.com/p/dart/source/detail?r=8632

Patch Set 1 #

Total comments: 12
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -17 lines) Patch
M lib/unittest/core_matchers.dart View 2 chunks +45 lines, -14 lines 4 comments Download
A lib/unittest/future_matchers.dart View 1 chunk +52 lines, -0 lines 8 comments Download
M lib/unittest/unittest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/utils/unittest_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Bob Nystrom
Unfortunately, I don't have tests for this stuff. I did a bunch of local testing ...
8 years, 6 months ago (2012-06-12 18:45:41 UTC) #1
gram
lgtm LGTM
8 years, 6 months ago (2012-06-12 22:12:42 UTC) #2
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/core_matchers.dart File lib/unittest/core_matchers.dart (right): https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/core_matchers.dart#newcode135 lib/unittest/core_matchers.dart:135: * or twice upon failure (the second time to ...
8 years, 6 months ago (2012-06-13 00:04:39 UTC) #3
Bob Nystrom
https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/core_matchers.dart File lib/unittest/core_matchers.dart (right): https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/core_matchers.dart#newcode135 lib/unittest/core_matchers.dart:135: * or twice upon failure (the second time to ...
8 years, 6 months ago (2012-06-13 20:22:06 UTC) #4
Siggi Cherem (dart-lang)
https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/future_matchers.dart File lib/unittest/future_matchers.dart (right): https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/future_matchers.dart#newcode25 lib/unittest/future_matchers.dart:25: Matcher completion(matcher) => new _Completes(wrapMatcher(matcher)); On 2012/06/13 20:22:06, Bob ...
8 years, 6 months ago (2012-06-13 20:27:20 UTC) #5
Bob Nystrom
https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/future_matchers.dart File lib/unittest/future_matchers.dart (right): https://chromiumcodereview.appspot.com/10548005/diff/1/lib/unittest/future_matchers.dart#newcode25 lib/unittest/future_matchers.dart:25: Matcher completion(matcher) => new _Completes(wrapMatcher(matcher)); On 2012/06/13 20:27:20, sigmund ...
8 years, 6 months ago (2012-06-13 20:35:51 UTC) #6
Siggi Cherem (dart-lang)
8 years, 6 months ago (2012-06-13 20:45:20 UTC) #7
lgtm

makes sense.

Powered by Google App Engine
This is Rietveld 408576698