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

Issue 11028010: Make sure to wrap all callbacks with expectAsync in tests (Closed)

Created:
8 years, 2 months ago by Alan Knight
Modified:
8 years, 2 months ago
Reviewers:
Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make sure to wrap all callbacks with expectAsync in tests Committed: https://code.google.com/p/dart/source/detail?r=13124

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M pkg/intl/lib/intl_browser.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/intl/test/date_time_format_file_test_stub.dart View 1 chunk +8 lines, -3 lines 4 comments Download
M pkg/intl/test/date_time_format_http_request_test.dart View 1 chunk +7 lines, -5 lines 0 comments Download
M pkg/intl/test/find_default_locale_browser_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/intl/test/intl_message_test.dart View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Alan Knight
Some tests weren't wrapping callbacks in expectAsync<N> calls, which appears to mean the code in ...
8 years, 2 months ago (2012-10-02 00:14:54 UTC) #1
Emily Fortuna
glad this is fixed up. lgtm with comments https://codereview.chromium.org/11028010/diff/1/pkg/intl/test/date_time_format_file_test_stub.dart File pkg/intl/test/date_time_format_file_test_stub.dart (right): https://codereview.chromium.org/11028010/diff/1/pkg/intl/test/date_time_format_file_test_stub.dart#newcode21 pkg/intl/test/date_time_format_file_test_stub.dart:21: test('Run ...
8 years, 2 months ago (2012-10-02 00:42:55 UTC) #2
Alan Knight
8 years, 2 months ago (2012-10-02 20:12:21 UTC) #3
https://codereview.chromium.org/11028010/diff/1/pkg/intl/test/date_time_forma...
File pkg/intl/test/date_time_format_file_test_stub.dart (right):

https://codereview.chromium.org/11028010/diff/1/pkg/intl/test/date_time_forma...
pkg/intl/test/date_time_format_file_test_stub.dart:21: test('Run everything', ()
{
On 2012/10/02 00:42:55, Emily Fortuna wrote:
> can we make this test name more descriptive? like "running all
> date_time_formatting" or something

Done.

https://codereview.chromium.org/11028010/diff/1/pkg/intl/test/date_time_forma...
pkg/intl/test/date_time_format_file_test_stub.dart:33: expectAsync1((results) =>
runDateTests(getSubset())));});
On 2012/10/02 00:42:55, Emily Fortuna wrote:
> I'd add a line break after the semicolon

Done.

Powered by Google App Engine
This is Rietveld 408576698