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

Issue 12213079: setUp/tearDown functions can now be asynchronous. (Closed)

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

Description

setUp/tearDown functions can now be asynchronous. See https://code.google.com/p/dart/issues/detail?id=7670 As part of this change: - you can now provide an ID in calls to expectAsyncN; if a callback gets called too many times the ID will now be included in the message - each test case is responsible for kicking off the next test case once it is complete. This is cleaner than the old code which had various tests scattered around that would kick off the next test case. Committed: https://code.google.com/p/dart/source/detail?r=18360

Patch Set 1 #

Total comments: 18

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Total comments: 15

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -66 lines) Patch
M pkg/unittest/lib/src/test_case.dart View 1 2 3 4 3 chunks +82 lines, -14 lines 0 comments Download
M pkg/unittest/lib/unittest.dart View 1 2 3 4 16 chunks +60 lines, -49 lines 0 comments Download
M pkg/unittest/test/unittest_test.dart View 1 2 4 chunks +95 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
gram
7 years, 10 months ago (2013-02-08 01:25:13 UTC) #1
justinfagnani
This is great! First pass. I'm still trying to grok the internal api of unittest, ...
7 years, 10 months ago (2013-02-08 01:36:48 UTC) #2
gram
https://codereview.chromium.org/12213079/diff/1/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://codereview.chromium.org/12213079/diff/1/pkg/unittest/lib/src/test_case.dart#newcode89 pkg/unittest/lib/src/test_case.dart:89: .catchError((e) { On 2013/02/08 01:36:48, justinfagnani wrote: > Make ...
7 years, 10 months ago (2013-02-08 17:52:24 UTC) #3
Siggi Cherem (dart-lang)
https://codereview.chromium.org/12213079/diff/1/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://codereview.chromium.org/12213079/diff/1/pkg/unittest/lib/src/test_case.dart#newcode89 pkg/unittest/lib/src/test_case.dart:89: .catchError((e) { On 2013/02/08 17:52:24, gram wrote: > On ...
7 years, 10 months ago (2013-02-08 18:02:22 UTC) #4
justinfagnani
https://chromiumcodereview.appspot.com/12213079/diff/1/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://chromiumcodereview.appspot.com/12213079/diff/1/pkg/unittest/lib/src/test_case.dart#newcode89 pkg/unittest/lib/src/test_case.dart:89: .catchError((e) { On 2013/02/08 18:02:22, Siggi Cherem (dart-lang) wrote: ...
7 years, 10 months ago (2013-02-08 18:36:57 UTC) #5
gram
https://chromiumcodereview.appspot.com/12213079/diff/1/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://chromiumcodereview.appspot.com/12213079/diff/1/pkg/unittest/lib/unittest.dart#newcode695 pkg/unittest/lib/unittest.dart:695: /** Advance to the next test case. */ On ...
7 years, 10 months ago (2013-02-08 18:43:15 UTC) #6
gram
Changed to have TestCase.run() return a Future, to decouple TestCase from unittest.dart. This may make ...
7 years, 10 months ago (2013-02-11 22:44:22 UTC) #7
Siggi Cherem (dart-lang)
lgtm, just a few minor style comments below https://chromiumcodereview.appspot.com/12213079/diff/6/pkg/unittest/lib/src/test_case.dart File pkg/unittest/lib/src/test_case.dart (right): https://chromiumcodereview.appspot.com/12213079/diff/6/pkg/unittest/lib/src/test_case.dart#newcode85 pkg/unittest/lib/src/test_case.dart:85: return ...
7 years, 10 months ago (2013-02-11 23:14:17 UTC) #8
gram
https://chromiumcodereview.appspot.com/12213079/diff/3001/pkg/unittest/lib/unittest.dart File pkg/unittest/lib/unittest.dart (right): https://chromiumcodereview.appspot.com/12213079/diff/3001/pkg/unittest/lib/unittest.dart#newcode674 pkg/unittest/lib/unittest.dart:674: id != '[Async tearDown completion handler] ') { On ...
7 years, 10 months ago (2013-02-11 23:50:24 UTC) #9
Siggi Cherem (dart-lang)
7 years, 10 months ago (2013-02-11 23:55:24 UTC) #10
lgtm!

Powered by Google App Engine
This is Rietveld 408576698