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

Issue 10918261: Update language tests to new optional parameter syntax and semantics. (Closed)

Created:
8 years, 3 months ago by regis
Modified:
8 years, 3 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update language tests to new optional parameter syntax and semantics. Committed: https://code.google.com/p/dart/source/detail?r=12415

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -167 lines) Patch
M tests/language/argument_definition2_test.dart View 1 chunk +1 line, -0 lines 3 comments Download
M tests/language/argument_definition_test.dart View 3 chunks +8 lines, -8 lines 0 comments Download
M tests/language/closure7_test.dart View 3 chunks +14 lines, -14 lines 0 comments Download
M tests/language/compile_time_constant_e_test.dart View 1 chunk +10 lines, -6 lines 0 comments Download
M tests/language/compile_time_constant_i_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/constructor_named_arguments_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/language/function_type_alias2_test.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M tests/language/function_type_alias_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/method_override2_test.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M tests/language/named_argument_in_const_creation_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/named_parameters_aggregated_test.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M tests/language/named_parameters_named_count_test.dart View 1 chunk +0 lines, -6 lines 0 comments Download
M tests/language/named_parameters_passing_false_test.dart View 1 chunk +12 lines, -6 lines 0 comments Download
M tests/language/named_parameters_passing_falsy_test.dart View 2 chunks +14 lines, -8 lines 0 comments Download
M tests/language/named_parameters_passing_null_test.dart View 1 chunk +12 lines, -6 lines 0 comments Download
M tests/language/named_parameters_passing_zero_test.dart View 1 chunk +12 lines, -6 lines 0 comments Download
M tests/language/named_parameters_test.dart View 3 chunks +14 lines, -22 lines 0 comments Download
M tests/language/named_parameters_with_conversions_test.dart View 3 chunks +26 lines, -11 lines 0 comments Download
M tests/language/named_parameters_with_dollars_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/named_parameters_with_object_property_names_test.dart View 16 chunks +48 lines, -48 lines 0 comments Download
M tests/language/parameter_initializer6_negative_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/parameter_initializer_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/positional_parameters_type_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
regis
TBR
8 years, 3 months ago (2012-09-15 23:01:10 UTC) #1
ngeoffray
LGTM, but https://codereview.chromium.org/10918261/diff/1/tests/language/argument_definition2_test.dart File tests/language/argument_definition2_test.dart (right): https://codereview.chromium.org/10918261/diff/1/tests/language/argument_definition2_test.dart#newcode4 tests/language/argument_definition2_test.dart:4: // VMOptions=--reject_named_argument_as_positional This won't work for dart2js, ...
8 years, 3 months ago (2012-09-16 08:35:26 UTC) #2
regis
https://codereview.chromium.org/10918261/diff/1/tests/language/argument_definition2_test.dart File tests/language/argument_definition2_test.dart (right): https://codereview.chromium.org/10918261/diff/1/tests/language/argument_definition2_test.dart#newcode4 tests/language/argument_definition2_test.dart:4: // VMOptions=--reject_named_argument_as_positional On 2012/09/16 08:35:27, ngeoffray wrote: > This ...
8 years, 3 months ago (2012-09-17 17:16:42 UTC) #3
ngeoffray
8 years, 3 months ago (2012-09-21 07:12:32 UTC) #4
https://codereview.chromium.org/10918261/diff/1/tests/language/argument_defin...
File tests/language/argument_definition2_test.dart (right):

https://codereview.chromium.org/10918261/diff/1/tests/language/argument_defin...
tests/language/argument_definition2_test.dart:4: //
VMOptions=--reject_named_argument_as_positional
On 2012/09/17 17:16:42, regis wrote:
> On 2012/09/16 08:35:27, ngeoffray wrote:
> > This won't work for dart2js, could you change the test instead to avoid
adding
> > this? Or change test.py to always pass that option from now on?
> 
> I notice now that this particular test did not need this change, since it runs
> fine under both the old and new semantics. However, there are other tests that
I
> fixed in this cl that only run under the new semantics.
> 
> Unfortunately, this is still too early to run all tests under the new
semantics,
> because of some issues in the corelib (e.g. Date constructor). So I cannot yet
> pass that flag from test.py.
> 
> I suggest that we leave it as is until this becomes an issue for dart2js. At
> that time, I suspect that the core lib will be updated so that all tests can
be
> run under the new semantics. We can then pass the flag in test.py and remove
> these VMOptions directives in the tests.
> 
> Would that work for you?

No problem, let's do that and hope we can remove this flag ASAP.

> 
> Thanks!

Powered by Google App Engine
This is Rietveld 408576698