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

Issue 2564563003: Add tests for `FutureOr<T>`. (Closed)

Created:
4 years ago by floitsch
Modified:
4 years ago
CC:
reviews_dartlang.org, Brian Wilkerson, regis
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Fix test. #

Patch Set 3 : Add a few more negative tests. #

Patch Set 4 : Update status file for dart2js. #

Total comments: 27

Patch Set 5 : Update status file for the VM. #

Patch Set 6 : Update status file for the analyzer. #

Patch Set 7 : Address comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -0 lines) Patch
A tests/lib/async/future_or_bad_type_test.dart View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A tests/lib/async/future_or_non_strong_test.dart View 1 2 3 4 5 6 1 chunk +118 lines, -0 lines 0 comments Download
A tests/lib/async/future_or_only_in_async_test.dart View 1 chunk +17 lines, -0 lines 0 comments Download
A tests/lib/async/future_or_strong_test.dart View 1 2 3 4 5 6 1 chunk +126 lines, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 3 chunks +17 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (2 generated)
floitsch
I still need to update the status files.
4 years ago (2016-12-08 15:34:53 UTC) #2
floitsch
Updated the status file. Note: this CL depends on https://codereview.chromium.org/2562703002/
4 years ago (2016-12-08 17:45:51 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/2564563003/diff/60001/tests/lib/async/future_or_bad_type_test.dart File tests/lib/async/future_or_bad_type_test.dart (right): https://codereview.chromium.org/2564563003/diff/60001/tests/lib/async/future_or_bad_type_test.dart#newcode14 tests/lib/async/future_or_bad_type_test.dart:14: with FutureOr<bool> /// with: compile-time error You need "extends ...
4 years ago (2016-12-08 18:20:29 UTC) #4
floitsch
So should I add another comment explaining that one test is in strong mode and ...
4 years ago (2016-12-08 18:41:55 UTC) #5
Lasse Reichstein Nielsen
Once at the top of each file is enough, as long as it stands out ...
4 years ago (2016-12-08 19:31:00 UTC) #6
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/2564563003/diff/120001/tests/lib/lib.status File tests/lib/lib.status (right): https://codereview.chromium.org/2564563003/diff/120001/tests/lib/lib.status#newcode15 tests/lib/lib.status:15: async/future_or_strong_test: RuntimeError, OK Should this be skipped if ...
4 years ago (2016-12-12 13:21:55 UTC) #7
floitsch
4 years ago (2016-12-12 13:55:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
0c3deba6dfcc23edd1bff80c274ac63f7d719a93 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698