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

Issue 2201973002: fix optional params to mock methods, allow all signatures (Closed)

Created:
4 years, 4 months ago by Jennifer Messerly
Modified:
4 years, 4 months ago
Reviewers:
vsm, srawlins
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix optional params to mock methods, allow all signatures switches to use the same technique as `dsend` R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/e5c2aac3fbb503fe0ede030dca9bfdc36bb0093a

Patch Set 1 : fix #

Patch Set 2 : revert pubspec #

Patch Set 3 : fix getters and setters #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -549 lines) Patch
M lib/runtime/dart_sdk.js View 1 chunk +10 lines, -5 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 2 1 chunk +19 lines, -15 lines 0 comments Download
M lib/src/js_ast/printer.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/codegen/language/no_such_method_mock_test.dart View 1 2 5 chunks +32 lines, -4 lines 3 comments Download
M test/codegen_expected/language/cyclic_import_test.js View 2 chunks +7 lines, -15 lines 2 comments Download
M test/codegen_expected/language/flatten_test_01_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_02_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_03_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_04_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_05_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_06_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_07_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_08_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_09_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_10_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_11_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_12_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/flatten_test_none_multi.js View 1 2 2 chunks +36 lines, -36 lines 0 comments Download
M test/codegen_expected/language/no_such_method_mock_test.js View 1 2 2 chunks +52 lines, -19 lines 0 comments Download
M test/codegen_expected/language/no_such_method_subtype_test.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_03_multi.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_04_multi.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_05_multi.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_08_multi.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_11_multi.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/codegen_expected/language/override_inheritance_no_such_method_test_13_multi.js View 1 chunk +4 lines, -4 lines 0 comments Download
M tool/input_sdk/private/ddc_runtime/operations.dart View 1 chunk +14 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Jennifer Messerly
This fixes the issue described in CL https://codereview.chromium.org/2202673002/, along with manual verification of that test ...
4 years, 4 months ago (2016-08-01 21:28:38 UTC) #3
Jennifer Messerly
Update: getters/setters were kind of broken in the first patch (thanks Sam for catching) ...
4 years, 4 months ago (2016-08-01 22:38:12 UTC) #4
srawlins
On 2016/08/01 22:38:12, John Messerly wrote: > Update: getters/setters were kind of broken in the ...
4 years, 4 months ago (2016-08-01 22:53:27 UTC) #5
vsm
lgtm https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart File test/codegen/language/no_such_method_mock_test.dart (right): https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart#newcode62 test/codegen/language/no_such_method_mock_test.dart:62: Expect.throws(() => mock.scratch("couch") + ''); Does this really ...
4 years, 4 months ago (2016-08-01 23:14:32 UTC) #6
Jennifer Messerly
thanks! https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart File test/codegen/language/no_such_method_mock_test.dart (right): https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart#newcode62 test/codegen/language/no_such_method_mock_test.dart:62: Expect.throws(() => mock.scratch("couch") + ''); On 2016/08/01 23:14:32, ...
4 years, 4 months ago (2016-08-01 23:18:01 UTC) #7
vsm
lgtm https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart File test/codegen/language/no_such_method_mock_test.dart (right): https://codereview.chromium.org/2201973002/diff/60001/test/codegen/language/no_such_method_mock_test.dart#newcode62 test/codegen/language/no_such_method_mock_test.dart:62: Expect.throws(() => mock.scratch("couch") + ''); On 2016/08/01 23:18:00, ...
4 years, 4 months ago (2016-08-01 23:19:31 UTC) #8
Jennifer Messerly
4 years, 4 months ago (2016-08-01 23:22:09 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
e5c2aac3fbb503fe0ede030dca9bfdc36bb0093a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698