Commit Graph

676 Commits

Author SHA1 Message Date
Jakob Roland Andersen d687bc6673 Migrated test batch 122 to Dart 2.0.
Bug:
Change-Id: Icb90877af264b2f61c9e32be7420ed748cab601f
Reviewed-on: https://dart-review.googlesource.com/5741
Commit-Queue: Jakob Roland Andersen <jakobr@google.com>
Reviewed-by: Florian Loitsch <floitsch@google.com>
2017-09-14 14:42:48 +00:00
Ben Konyi 30dde80447 Migrated test block 57 to Dart 2.0.
Bug:
Change-Id: I4b6845b0539fc5b8bb7118d6e920685afb0b3edc
Reviewed-on: https://dart-review.googlesource.com/5342
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Jennifer Messerly <jmesserly@google.com>
2017-09-13 18:08:58 +00:00
Paul Berry 5145705d51 Test a corner case of runtime checks (closure called via method interface).
Currently, Dart 2.0 forbids overriding a method with a getter (even if
the types are compatible), so once a method has been torn off, there's
no way to ever call the tear-off through an interface target that is a
method.  However, if we ever relax that rule and allow a method to be
overridden with a getter, it will be possible to call a torn-off
method through an interface target that is a method.  If this ever
happens, we will need to make sure that the proper covariance checks
occur.

Since overriding a method with a getter is currently forbidden, the
new tests verify that the expected compile time error occurs.
However, to future proof us against the possibility that this
restriction is ever relaxed, the tests also contain enough code to
demonstrate the runtime check that would be needed.

Change-Id: Iea3a56d86f661362ff9fb970bcc80c8f80c50f4e
Reviewed-on: https://dart-review.googlesource.com/5322
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2017-09-13 17:39:40 +00:00
pq 8da668be93 Migrate Test Block 137 to Dart 2.0.
named_parameters_default_eq_test .. namer_test

Bug:
Change-Id: I0d0d853e94e7ca78472224405f811d1ac55c1f6c
Reviewed-on: https://dart-review.googlesource.com/5283
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-09-13 15:44:13 +00:00
Alexander Markov 6fbab08b21 [Tests] Update status files for dartkp configuration
This CL silences several tests for '$compiler = dartkp' configuration
in order to make vm-kernel-precomp-* buildbots greener.
These tests are already silenced for '$compiler = precompiler' or
'$compiler = dartk' configurations.

Change-Id: Ia3208853655868ae4cf39775d40db15218c1a1df
Reviewed-on: https://dart-review.googlesource.com/5286
Reviewed-by: Alexander Aprelev <aam@google.com>
2017-09-12 20:08:51 +00:00
Ben Konyi cdc7a16d8e Migrated test block 166 to Dart 2.0.
Bug:
Change-Id: Ib21357cf328ec25c1acc58c3b37a4a7bf2910fa1
Reviewed-on: https://dart-review.googlesource.com/4612
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-09-12 19:22:08 +00:00
Brian Wilkerson f93da679a1 Support the optional comma in asserts in fasta
Change-Id: Iab3ad9403eba353f695c5eff352d332ed07a6a6f
Reviewed-on: https://dart-review.googlesource.com/3320
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2017-09-12 17:21:42 +00:00
Bob Nystrom c8aa62fe80 Fix bad_constructor_test.
This reintroduces the previously-tested behavior (that a named
constructor can have the same name as a setter) and also cleans it up
and documents it.

Change-Id: Ia4d532a26e081ab150dfd073d1e6909f1b53a9ad
Reviewed-on: https://dart-review.googlesource.com/3386
Reviewed-by: Peter von der Ahé <ahe@google.com>
2017-09-07 20:31:00 +00:00
Bob Nystrom f1e81f9014 Migrate 118.
Change-Id: I7e520ef997291301b41c351b9f45ea3e9da74c37
Reviewed-on: https://dart-review.googlesource.com/3424
Reviewed-by: Erik Ernst <eernst@google.com>
2017-09-07 20:14:09 +00:00
Bob Nystrom e9255446b3 Migrate block 117.
Change-Id: Ie2f7d2b93120dc2f2fbef6d1c01604d240ecc7da
Reviewed-on: https://dart-review.googlesource.com/3420
Reviewed-by: Jennifer Messerly <jmesserly@google.com>
2017-09-06 23:32:58 +00:00
Peter von der Ahé f0277b32e8 Revert "Store actual Reference(s) for additional exports."
This reverts commit 234c4a7f49.

Revert "Fix for ScopeBuilder[] - look into setters too."

This reverts commit 7924f4c42f.

Revert "Don't include BuiltinTypeBuilder(s) into additional exports."

This reverts commit e28aac09c4.

The reason for reverting is that the two follow-up commits aren't correct.

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3004973002 .
2017-08-31 16:13:50 +02:00
Janice Collins 3a8a1ca54c Migrate test block 113 to Dart 2.0.
Request particular attention to generic_creation_test and generic_field_mixin6_test, but all of the following required tweaks
to the status files to pass tests:

generic_closure_test
generic_function_bounds_test
generic_function_dcall_test
generic_function_typedef_test
generic_field_mixin6_test
generalized_void_syntax_test
generic_functions_test

BUG=
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3008573002 .
2017-08-30 08:50:16 -07:00
Bob Nystrom a719910d78 Migrate block 116.
Interesting bits:

- Removed some behavior that is now unreachable in the presence of
  type errors.
- Made if_null_behavior_test not a multitest since it doesn't need to
  be any more.
- Likewise, if_null_evaluation_order_test never needed to be a
  multitest.

R=lrn@google.com

Review-Url: https://codereview.chromium.org/3003933002 .
2017-08-29 15:50:49 -07:00
Alexander Aprelev 340957c8b0 Update one more dartkp test status to make vm-kernel fyi bots green.
TBR=siva

Review-Url: https://codereview.chromium.org/3005783002 .
2017-08-29 06:25:16 -07:00
Alexander Aprelev 54289e128d Follow with few more dartk test status updates
BUG=

TBR=asiva

Review-Url: https://codereview.chromium.org/3010603002 .
2017-08-28 20:21:47 -07:00
Alexander Aprelev 7cbb96c199 Wholesale update tests status in attempt to make (fyi) dartkp buildbots green.
Buildbots are here: https://build.chromium.org/p/client.dart.fyi/console.

BUG=
R=asiva@google.com

Review-Url: https://codereview.chromium.org/3000423002 .
2017-08-28 18:32:21 -07:00
Régis Crelier b3a7dd6e9d [VM generic function reification] Support generic functions in Invocation class.
Make VM object TypeArguments a Dart instance.
Add a test verifying that noSuchMethod works with generic functions.

R=floitsch@google.com, rmacnak@google.com

Review-Url: https://codereview.chromium.org/3007603002 .
2017-08-28 17:00:39 -07:00
Bob Nystrom 46320c5208 Migrate block 115.
Interesting changes:

- A static getter colliding with an inherited non-static setter is a
  compile error, not a type warning.

- Trying to call a setter on what is only a getter is a compile error
  with no runtime behavior.

- Add support to test.dart for negative tests in DDC.

BUG=
R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3005643002 .
2017-08-28 16:17:28 -07:00
Morten Krogh-Jespersen 706d4231ea Migrating block 59, first commit, after tool has run.
There were tests that tested only checked mode, having their name on the form xx_checked_xx. Those files have been renamed to static.

We found an issue in the DDC regarding constant maps, the issue has been added to the status file.

R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/2994383002 .
2017-08-25 12:10:13 +02:00
Bob Nystrom 615be6451e Migrate block 114 (and some of 113).
generic_instanceof ... getter_closure_execution_order_test.

The main interesting one is generic_methods_type_expression_test. It
was testing old Dart 1.0-specific behavior and needed a lot of changes.

R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3001803002 .
2017-08-24 10:52:29 -07:00
Alexander Aprelev dff0d004d1 Update dartk test status to make dartk buildbots(vm-kernel-linux-release-x64-checked-be) greener.
BUG=
R=asiva@google.com

Review-Url: https://codereview.chromium.org/3005473002 .
2017-08-23 09:10:44 -07:00
Florian Loitsch c8970ec5dc Fix status file.
Review-Url: https://codereview.chromium.org/2996233002 .
2017-08-18 10:45:49 +02:00
Bob Nystrom 1196fc9cda Update status files typevariable_substitution2_test.
R=alanknight@google.com

Review-Url: https://codereview.chromium.org/3002873002 .
2017-08-17 13:04:54 -07:00
Régis Crelier a18b318fed [VM parser] Insert missing result type check in async functions using arrow
style instead of 'return' keyword (fixes #30339).
Add regression test.

R=asiva@google.com, cbernaschina@google.com

Review-Url: https://codereview.chromium.org/2993223002 .
2017-08-08 09:15:28 -07:00
Bob Nystrom 243d1c74eb Migrate language block 46 - canonical_const ... char_escape.
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/2996533003 .
2017-08-04 16:52:13 -07:00
Bob Nystrom 9a0c11c26b Split language_2.status into multiple files.
This mainly splits along compiler lines, but uses runtime for a couple
of things -- VM and Flutter mainly.

I did most of the work automatically by hacking up the migration script
to re-migrate the existing file, but I also went through and manually
cleaned the result up as best I could.

R=bkonyi@google.com, jcollins@google.com

Review-Url: https://codereview.chromium.org/2993043002 .
2017-08-04 11:33:01 -07:00