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

Issue 3001433002: Migrating a block of dart 1 tests to dart 2 (Closed)

Created:
3 years, 4 months ago by mkroghj
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Migrating a block of dart 2: ./language[_strong]/class_keyword_test.dart ./language[_strong]/closure_shared_state_test.dart R=johnniwinther@google.com NOTE: I had to bypass hooks since the analyser fails on the files that have static compile-time errors. Should I do something else? Committed: https://github.com/dart-lang/sdk/commit/fa59030f18c5015f7e25832d9247cc2967e99aa1 Reverted: https://github.com/dart-lang/sdk/commit/f0e8bb629b9c9a0c7028d116f1642a71847175ec Committed: https://github.com/dart-lang/sdk/commit/3803057169bf37cd01035734a04a64863a5050f1

Patch Set 1 #

Patch Set 2 : Migrating tests from dart 1.0 to dart 2.0 #

Total comments: 1

Patch Set 3 : Updated tests with feedback from johnniwinther #

Patch Set 4 : Final commit for this issue - made the type-definition dynamic to allow for runtime checks #

Patch Set 5 : Fixed merge conflict characters #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -18468 lines) Patch
D tests/language/class_keyword_test.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D tests/language/class_literal_test.dart View 1 chunk +0 lines, -60 lines 0 comments Download
D tests/language/class_override_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language/class_syntax2_test.dart View 1 chunk +0 lines, -28 lines 0 comments Download
D tests/language/class_syntax_test.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D tests/language/class_test.dart View 1 chunk +0 lines, -177 lines 0 comments Download
D tests/language/classes_static_method_clash_test.dart View 1 chunk +0 lines, -8167 lines 0 comments Download
D tests/language/closure2_test.dart View 1 chunk +0 lines, -19 lines 0 comments Download
D tests/language/closure3_test.dart View 1 chunk +0 lines, -20 lines 0 comments Download
D tests/language/closure4_test.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D tests/language/closure5_test.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D tests/language/closure6_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language/closure7_test.dart View 1 chunk +0 lines, -97 lines 0 comments Download
D tests/language/closure8_test.dart View 1 chunk +0 lines, -19 lines 0 comments Download
D tests/language/closure_break1_test.dart View 1 chunk +0 lines, -52 lines 0 comments Download
D tests/language/closure_break2_test.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D tests/language/closure_break_test.dart View 1 chunk +0 lines, -56 lines 0 comments Download
D tests/language/closure_call_wrong_argument_count_negative_test.dart View 1 chunk +0 lines, -22 lines 0 comments Download
D tests/language/closure_cycles_test.dart View 1 chunk +0 lines, -43 lines 0 comments Download
D tests/language/closure_in_constructor_test.dart View 1 chunk +0 lines, -26 lines 0 comments Download
D tests/language/closure_in_field_initializer_test.dart View 1 1 chunk +0 lines, -14 lines 0 comments Download
D tests/language/closure_in_initializer2_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D tests/language/closure_in_initializer_test.dart View 1 chunk +0 lines, -51 lines 0 comments Download
D tests/language/closure_internals_test.dart View 1 chunk +0 lines, -16 lines 0 comments Download
D tests/language/closure_parameter_types_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D tests/language/closure_self_reference_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language/closure_shared_state_test.dart View 1 chunk +0 lines, -76 lines 0 comments Download
M tests/language/language.status View 4 chunks +0 lines, -4 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 2 chunks +0 lines, -97 lines 0 comments Download
A + tests/language_2/class_keyword_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A tests/language_2/class_literal_static_test.dart View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
A tests/language_2/class_literal_test.dart View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A + tests/language_2/class_override_test.dart View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
A + tests/language_2/class_syntax2_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/class_syntax_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/class_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/classes_static_method_clash_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure2_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure3_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure4_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure5_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure6_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure7_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure8_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_break1_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_break2_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_break_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_call_wrong_argument_count_negative_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_cycles_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_in_constructor_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_in_field_initializer_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_in_initializer2_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_in_initializer_static_test.dart View 1 1 chunk +4 lines, -24 lines 0 comments Download
A + tests/language_2/closure_in_initializer_test.dart View 1 2 chunks +2 lines, -4 lines 0 comments Download
A + tests/language_2/closure_internals_test.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + tests/language_2/closure_parameter_types_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_self_reference_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/language_2/closure_shared_state_test.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/language_2/language_2.status View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M tests/language_2/language_2_analyzer.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language_2/language_2_dart2js.status View 1 2 3 4 2 chunks +97 lines, -0 lines 0 comments Download
M tests/language_2/language_2_flutter.status View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language_2/language_2_precompiled.status View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language_2/language_2_vm.status View 1 chunk +3 lines, -0 lines 0 comments Download
D tests/language_strong/class_keyword_test.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D tests/language_strong/class_literal_test.dart View 1 chunk +0 lines, -60 lines 0 comments Download
D tests/language_strong/class_override_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language_strong/class_syntax2_test.dart View 1 chunk +0 lines, -28 lines 0 comments Download
D tests/language_strong/class_syntax_test.dart View 1 chunk +0 lines, -12 lines 0 comments Download
D tests/language_strong/class_test.dart View 1 chunk +0 lines, -177 lines 0 comments Download
D tests/language_strong/classes_static_method_clash_test.dart View 1 chunk +0 lines, -8167 lines 0 comments Download
D tests/language_strong/closure2_test.dart View 1 chunk +0 lines, -19 lines 0 comments Download
D tests/language_strong/closure3_test.dart View 1 chunk +0 lines, -20 lines 0 comments Download
D tests/language_strong/closure4_test.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D tests/language_strong/closure5_test.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D tests/language_strong/closure6_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language_strong/closure7_test.dart View 1 chunk +0 lines, -97 lines 0 comments Download
D tests/language_strong/closure8_test.dart View 1 chunk +0 lines, -19 lines 0 comments Download
D tests/language_strong/closure_break1_test.dart View 1 chunk +0 lines, -52 lines 0 comments Download
D tests/language_strong/closure_break2_test.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D tests/language_strong/closure_break_test.dart View 1 chunk +0 lines, -56 lines 0 comments Download
D tests/language_strong/closure_call_wrong_argument_count_negative_test.dart View 1 chunk +0 lines, -22 lines 0 comments Download
D tests/language_strong/closure_cycles_test.dart View 1 chunk +0 lines, -43 lines 0 comments Download
D tests/language_strong/closure_in_constructor_test.dart View 1 chunk +0 lines, -26 lines 0 comments Download
D tests/language_strong/closure_in_field_initializer_test.dart View 1 chunk +0 lines, -14 lines 0 comments Download
D tests/language_strong/closure_in_initializer2_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D tests/language_strong/closure_in_initializer_test.dart View 1 chunk +0 lines, -51 lines 0 comments Download
D tests/language_strong/closure_internals_test.dart View 1 chunk +0 lines, -16 lines 0 comments Download
D tests/language_strong/closure_parameter_types_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D tests/language_strong/closure_self_reference_test.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D tests/language_strong/closure_shared_state_test.dart View 1 chunk +0 lines, -76 lines 0 comments Download
M tests/language_strong/language_strong.status View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Johnni Winther
3 years, 4 months ago (2017-08-10 08:36:48 UTC) #3
mkroghj
PTAL Regarding the class_literal_test, the instance x was never really used, therefore I completely in ...
3 years, 4 months ago (2017-08-10 11:43:01 UTC) #5
Johnni Winther
lgtm https://codereview.chromium.org/3001433002/diff/20001/tests/language_2/class_literal_test.dart File tests/language_2/class_literal_test.dart (right): https://codereview.chromium.org/3001433002/diff/20001/tests/language_2/class_literal_test.dart#newcode26 tests/language_2/class_literal_test.dart:26: Expect.throws(() { Class(); }, (e) => e is ...
3 years, 4 months ago (2017-08-10 11:50:41 UTC) #6
mkroghj
Committed patchset #4 (id:60001) manually as fa59030f18c5015f7e25832d9247cc2967e99aa1.
3 years, 4 months ago (2017-08-10 12:43:38 UTC) #8
mkroghj
3 years, 4 months ago (2017-08-10 13:11:43 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
3803057169bf37cd01035734a04a64863a5050f1.

Powered by Google App Engine
This is Rietveld 408576698