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

Issue 2087863003: Add test for trailing commas in parameter lists and argument lists. (Closed)

Created:
4 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
4 years, 5 months ago
Reviewers:
floitsch, hausner
CC:
reviews_dartlang.org, hausner, Brian Wilkerson, sra1
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add test for trailing commas in parameter lists and argument lists. Test is marked as failing for everyone. When implementing the feature for a platform, the platform should mark itself as no longer failing. R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/f6d6792bc86dc6c864a99fd1bd0d3c5784e32e24

Patch Set 1 #

Total comments: 4

Patch Set 2 : More tests. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -0 lines) Patch
A tests/language/arg_param_trailing_comma_test.dart View 1 1 chunk +401 lines, -0 lines 2 comments Download
M tests/language/language.status View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Lasse Reichstein Nielsen
4 years, 6 months ago (2016-06-22 10:43:23 UTC) #2
hausner
DBC: I would add cases that have extra commas after the closing ] or }, ...
4 years, 6 months ago (2016-06-22 17:19:42 UTC) #4
floitsch
LGTM. https://codereview.chromium.org/2087863003/diff/1/tests/language/arg_param_trailing_comma_test.dart File tests/language/arg_param_trailing_comma_test.dart (right): https://codereview.chromium.org/2087863003/diff/1/tests/language/arg_param_trailing_comma_test.dart#newcode170 tests/language/arg_param_trailing_comma_test.dart:170: void topBadEmpty(,) {} /// 01: compile-time error In ...
4 years, 6 months ago (2016-06-22 18:23:39 UTC) #5
Lasse Reichstein Nielsen
I have added a lot more tests. PTAL. https://codereview.chromium.org/2087863003/diff/1/tests/language/arg_param_trailing_comma_test.dart File tests/language/arg_param_trailing_comma_test.dart (right): https://codereview.chromium.org/2087863003/diff/1/tests/language/arg_param_trailing_comma_test.dart#newcode120 tests/language/arg_param_trailing_comma_test.dart:120: // ...
4 years, 6 months ago (2016-06-24 11:50:55 UTC) #6
floitsch
Still LGTM. https://codereview.chromium.org/2087863003/diff/20001/tests/language/arg_param_trailing_comma_test.dart File tests/language/arg_param_trailing_comma_test.dart (right): https://codereview.chromium.org/2087863003/diff/20001/tests/language/arg_param_trailing_comma_test.dart#newcode12 tests/language/arg_param_trailing_comma_test.dart:12: // Trailing comma in parameter litss. lists ...
4 years, 6 months ago (2016-06-24 18:16:22 UTC) #7
Lasse Reichstein Nielsen
4 years, 5 months ago (2016-06-27 06:58:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f6d6792bc86dc6c864a99fd1bd0d3c5784e32e24 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698