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

Issue 12393017: Fix issue with async callbacks that get called synchronously while running test case function causi… (Closed)

Created:
7 years, 9 months ago by gram
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix issue with async callbacks that get called synchronously while running test case function causing the test to be marked as complete prematurely. Added an optional id to completion matchers that can be used in error messages (this was invaluable in tracking down the above problem). Re-enable pub tests. https://code.google.com/p/dart/issues/detail?id=8862 Committed: https://code.google.com/p/dart/source/detail?r=19339

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -20 lines) Patch
M pkg/scheduled_test/lib/scheduled_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/lib/src/expect.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/lib/src/future_matchers.dart View 1 2 chunks +12 lines, -6 lines 0 comments Download
M pkg/unittest/lib/src/test_case.dart View 2 chunks +11 lines, -0 lines 0 comments Download
M pkg/unittest/lib/unittest.dart View 3 chunks +5 lines, -7 lines 0 comments Download
M pkg/unittest/test/unittest_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/pub.status View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
gram
7 years, 9 months ago (2013-03-01 21:04:56 UTC) #1
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/12393017/diff/1/pkg/unittest/lib/src/future_matchers.dart File pkg/unittest/lib/src/future_matchers.dart (right): https://codereview.chromium.org/12393017/diff/1/pkg/unittest/lib/src/future_matchers.dart#newcode37 pkg/unittest/lib/src/future_matchers.dart:37: const _Completes(this._matcher, String id) : style nit: move ...
7 years, 9 months ago (2013-03-01 21:11:19 UTC) #2
gram
Committed patchset #2 manually as r19339 (presubmit successful).
7 years, 9 months ago (2013-03-01 21:49:22 UTC) #3
gram
7 years, 9 months ago (2013-03-04 19:53:40 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/12393017/diff/1/pkg/unittest/lib/src/future_m...
File pkg/unittest/lib/src/future_matchers.dart (right):

https://codereview.chromium.org/12393017/diff/1/pkg/unittest/lib/src/future_m...
pkg/unittest/lib/src/future_matchers.dart:37: const _Completes(this._matcher,
String id) :
On 2013/03/01 21:11:20, Siggi Cherem (dart-lang) wrote:
> style nit: move the ':' to the next line:
> 
> 
>   const _Completes(this._matcher, String id)
>       : this._id = ...;

Done.

Powered by Google App Engine
This is Rietveld 408576698