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

Issue 2881603003: Generate outline without transformations in patched_sdk, use it for unit tests (Closed)

Created:
3 years, 7 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 6 months ago
Reviewers:
Paul Berry, ahe
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Generate outline without transformations in patched_sdk, use it for unit tests R=paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/db331244d018ceaf7a35995f1ad4cac5f2ad0a4f

Patch Set 1 #

Total comments: 4

Patch Set 2 : really use the outline, really #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M pkg/compiler/lib/src/kernel/fasta_support.dart View 2 chunks +6 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/compile_platform.dart View 2 chunks +13 lines, -9 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/front_end/test/fasta/compile.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/front_end/test/fasta/strong.status View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/test/fasta/testing/suite.dart View 1 4 chunks +22 lines, -9 lines 3 comments Download
M tools/patch_sdk.dart View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Siggi Cherem (dart-lang)
3 years, 7 months ago (2017-05-11 21:36:03 UTC) #3
Paul Berry
lgtm assuming the two comments below are addressed https://codereview.chromium.org/2881603003/diff/20001/pkg/front_end/test/fasta/testing/suite.dart File pkg/front_end/test/fasta/testing/suite.dart (right): https://codereview.chromium.org/2881603003/diff/20001/pkg/front_end/test/fasta/testing/suite.dart#newcode131 pkg/front_end/test/fasta/testing/suite.dart:131: return ...
3 years, 7 months ago (2017-05-11 21:49:14 UTC) #4
Siggi Cherem (dart-lang)
Thanks Paul, PTAL I added two status changes that got exposed with this change. It ...
3 years, 7 months ago (2017-05-11 22:06:58 UTC) #5
Paul Berry
lgtm
3 years, 7 months ago (2017-05-11 22:09:40 UTC) #6
Siggi Cherem (dart-lang)
Committed patchset #2 (id:40001) manually as db331244d018ceaf7a35995f1ad4cac5f2ad0a4f (presubmit successful).
3 years, 7 months ago (2017-05-11 22:10:42 UTC) #8
ahe
Since the run step is "async" the test runner doesn't await it. So it shouldn't ...
3 years, 6 months ago (2017-05-31 14:04:40 UTC) #9
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2881603003/diff/40001/pkg/front_end/test/fasta/testing/suite.dart File pkg/front_end/test/fasta/testing/suite.dart (right): https://codereview.chromium.org/2881603003/diff/40001/pkg/front_end/test/fasta/testing/suite.dart#newcode174 pkg/front_end/test/fasta/testing/suite.dart:174: await context.ensurePlatformUris(); On 2017/05/31 14:04:40, ahe wrote: > You ...
3 years, 6 months ago (2017-05-31 15:44:04 UTC) #10
ahe
3 years, 6 months ago (2017-05-31 16:40:19 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2881603003/diff/40001/pkg/front_end/test/fast...
File pkg/front_end/test/fasta/testing/suite.dart (right):

https://codereview.chromium.org/2881603003/diff/40001/pkg/front_end/test/fast...
pkg/front_end/test/fasta/testing/suite.dart:174: await
context.ensurePlatformUris();
On 2017/05/31 15:44:04, Siggi Cherem (dart-lang) wrote:
> On 2017/05/31 14:04:40, ahe wrote:
> > You can't do this here because this step is "async".
> 
> Should this just assert that context.patformUri is not null? (I mean, in
> practice this step is done after other steps that do ensure that the platforms
> uris are there. So asserting this would be a way to ensure that you put the
Run
> step after some Setup step.) If not, what's the appropriate way to handle
this?

I wasn't able to provide you a general solution for this earlier, but now it's
obvious to me :-)

Simply add another step.

But in this particular case, an assertion should be enough.

Powered by Google App Engine
This is Rietveld 408576698