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

Issue 10830128: Ability to guard callbacks that may never get called. (Closed)

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

Description

Ability to guard callbacks that may never get called (protectAsync*), and simplified and improved handling of exceptions. Committed: https://code.google.com/p/dart/source/detail?r=10152

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -25 lines) Patch
M lib/unittest/unittest.dart View 1 2 10 chunks +64 lines, -23 lines 0 comments Download
M tests/lib/unittest/unittest_test.dart View 1 2 3 chunks +15 lines, -2 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
gram
8 years, 4 months ago (2012-08-01 23:24:12 UTC) #1
gram
8 years, 4 months ago (2012-08-01 23:24:12 UTC) #2
gram
BTW this is my modified version of your example that now works: void testOne() { ...
8 years, 4 months ago (2012-08-01 23:25:17 UTC) #3
gram
Okay, now you can take a look. Your example will work with expectAsync0 or protectAsync ...
8 years, 4 months ago (2012-08-02 00:00:20 UTC) #4
Siggi Cherem (dart-lang)
can we add the test to keep it working in the future? http://codereview.chromium.org/10830128/diff/4001/lib/unittest/unittest.dart File lib/unittest/unittest.dart ...
8 years, 4 months ago (2012-08-02 00:19:07 UTC) #5
gram
Test added http://codereview.chromium.org/10830128/diff/4001/lib/unittest/unittest.dart File lib/unittest/unittest.dart (right): http://codereview.chromium.org/10830128/diff/4001/lib/unittest/unittest.dart#newcode359 lib/unittest/unittest.dart:359: _init(callback, _always, _never, 0); On 2012/08/02 00:19:07, ...
8 years, 4 months ago (2012-08-02 00:41:32 UTC) #6
Siggi Cherem (dart-lang)
8 years, 4 months ago (2012-08-02 00:42:09 UTC) #7
lgtm

http://codereview.chromium.org/10830128/diff/5002/tests/lib/unittest/unittest...
File tests/lib/unittest/unittest_test.dart (right):

http://codereview.chromium.org/10830128/diff/5002/tests/lib/unittest/unittest...
tests/lib/unittest/unittest_test.dart:191: buildStatusString(1, 0, 1, 'testOne',
message: 'Callback called after already being marked as done (1).:testTwo:')
80 col!

Powered by Google App Engine
This is Rietveld 408576698