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

Issue 903753002: Add test annotations to package:expect (Closed)

Created:
5 years, 10 months ago by Johnni Winther
Modified:
5 years, 10 months ago
Reviewers:
floitsch, herhut, sra1
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Update use_unused_api.dart #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -0 lines) Patch
M pkg/compiler/lib/src/js_backend/backend.dart View 3 chunks +62 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/use_unused_api.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M pkg/expect/lib/expect.dart View 1 chunk +21 lines, -0 lines 3 comments Download
A tests/compiler/dart2js/expect_annotations_test.dart View 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Johnni Winther
5 years, 10 months ago (2015-02-05 14:42:54 UTC) #2
herhut
LGTM I will add the support for the two type based annotations to the type ...
5 years, 10 months ago (2015-02-05 15:59:16 UTC) #3
floitsch
LGTM!
5 years, 10 months ago (2015-02-05 16:17:27 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as 43510 (presubmit successful).
5 years, 10 months ago (2015-02-05 16:30:11 UTC) #5
sra1
https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.dart File pkg/expect/lib/expect.dart (right): https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.dart#newcode400 pkg/expect/lib/expect.dart:400: /// Annotation class for testing of dart2js. Use this ...
5 years, 10 months ago (2015-02-13 20:37:38 UTC) #7
floitsch
https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.dart File pkg/expect/lib/expect.dart (right): https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.dart#newcode400 pkg/expect/lib/expect.dart:400: /// Annotation class for testing of dart2js. Use this ...
5 years, 10 months ago (2015-02-13 20:58:45 UTC) #8
floitsch
5 years, 10 months ago (2015-02-13 21:19:55 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.dart
File pkg/expect/lib/expect.dart (right):

https://codereview.chromium.org/903753002/diff/20001/pkg/expect/lib/expect.da...
pkg/expect/lib/expect.dart:400: /// Annotation class for testing of dart2js. Use
this as metadata on method
On 2015/02/13 20:58:45, floitsch wrote:
> On 2015/02/13 20:37:38, sra1 wrote:
> > This is a strange place for these annotations.
> > Every test in the world can see them but they are specific to dart2js.
> > 
> > I would be much happier if these were in a separate library and shared with
> > sdk/lib/_internal/compiler/js_lib/annotations.dart
> 
> :(
> Didn't know/forgot about js_lib/annotations.dart.
> 
> We should merge them.

Thinking more about it:
What would be the advantage of a separate library? The test still needs to run
in the VM. Importing dart2js-specific libraries into the test thus doesn't work.
In fact, given this constraint, we need to have the declarations visible to
every test. This makes a sharing pretty much impossible (or so complicated that
it isn't worth it).

However, we should align the naming of these two libraries.

Powered by Google App Engine
This is Rietveld 408576698