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

Issue 2903703002: Tighten types in test.dart even more. (Closed)

Created:
3 years, 7 months ago by Bob Nystrom
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Tighten types in test.dart even more. This removes all implicit casts and many implicit uses of dynamic. It adds a gratuitous number of explicit "as" casts and arguably makes the code worse. This is an interim step towards replacing the big configuration map with an actual typed object. These "as" casts should help catch places where the configuration object is being used and where the code will need to be changed to use a new object. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/7ce978bf91ad550610e310dd1032e10ba7d304f2

Patch Set 1 #

Patch Set 2 : Merge branch '1-options-parser' into 2-more-types #

Patch Set 3 : Merge branch 'master' into 2-more-types #

Total comments: 8

Patch Set 4 : Play nicer with strong mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -369 lines) Patch
M tools/testing/dart/analysis_options.yaml View 1 chunk +2 lines, -1 line 0 comments Download
M tools/testing/dart/android.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/testing/dart/browser_controller.dart View 9 chunks +14 lines, -12 lines 0 comments Download
M tools/testing/dart/co19_test.dart View 2 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/co19_test_config.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 2 3 chunks +15 lines, -15 lines 0 comments Download
M tools/testing/dart/drt_updater.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/html_test.dart View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M tools/testing/dart/http_server.dart View 2 chunks +13 lines, -7 lines 0 comments Download
M tools/testing/dart/options.dart View 1 2 14 chunks +37 lines, -32 lines 0 comments Download
M tools/testing/dart/package_testing_support.dart View 2 1 chunk +1 line, -1 line 0 comments Download
M tools/testing/dart/record_and_replay.dart View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M tools/testing/dart/reset_safari.dart View 6 chunks +20 lines, -21 lines 0 comments Download
M tools/testing/dart/runtime_configuration.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/testing/dart/status_reporter.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M tools/testing/dart/test_configurations.dart View 1 12 chunks +34 lines, -33 lines 0 comments Download
M tools/testing/dart/test_progress.dart View 6 chunks +14 lines, -11 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 24 chunks +45 lines, -41 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 58 chunks +167 lines, -149 lines 0 comments Download
M tools/testing/dart/utils.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/testing/dart/vendored_pkg/args/args.dart View 5 chunks +16 lines, -8 lines 0 comments Download
M tools/testing/dart/vendored_pkg/args/src/parser.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/testing/dart/vendored_pkg/args/src/usage.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M tools/testing/dart/vm_test_config.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Bob Nystrom
Thanks for reviewing all these changes!
3 years, 7 months ago (2017-05-23 21:45:04 UTC) #2
Bob Nystrom
Would you mind taking a look at this too since it's an AAR holiday? Thanks!
3 years, 7 months ago (2017-05-26 18:11:01 UTC) #4
Bob Nystrom
Note that this also has the changes I just uploaded to the previous patch. You ...
3 years, 7 months ago (2017-05-26 18:11:39 UTC) #5
Siggi Cherem (dart-lang)
lgtm after addressing a few small comments/questions. https://codereview.chromium.org/2903703002/diff/40001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/2903703002/diff/40001/tools/testing/dart/compiler_configuration.dart#newcode66 tools/testing/dart/compiler_configuration.dart:66: var isChecked ...
3 years, 6 months ago (2017-05-30 20:48:40 UTC) #6
Bob Nystrom
Thanks! https://codereview.chromium.org/2903703002/diff/40001/tools/testing/dart/compiler_configuration.dart File tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/2903703002/diff/40001/tools/testing/dart/compiler_configuration.dart#newcode66 tools/testing/dart/compiler_configuration.dart:66: var isChecked = configuration['checked'] as bool; On 2017/05/30 ...
3 years, 6 months ago (2017-05-30 21:01:47 UTC) #7
Bob Nystrom
3 years, 6 months ago (2017-05-30 21:02:27 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
7ce978bf91ad550610e310dd1032e10ba7d304f2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698