dart-sdk/tests
Erik Ernst f4d7951a88 For external/abstract fields: add tests and update Dart.g
This CL adds tests in language/external_abstract_fields, testing the
support for abstract instance variables, and for external top-level,
class, and instance variables. It is tested that the syntax of
supported declarations is accepted, and a number of non-supported
forms are rejected, and abstract fields are tested at run time as well.

The implementation of external fields is provided by an implementation
specific mechanism, and no tests are added for any such mechanisms
(that is, with external fields we only test errors).

This CL also updates the spec grammar Dart.g to include grammar
rules for the new kinds of declarations, and it has been verified that
the new tests are passing, respectively cause syntax errors, as
indicated in the test files.

The tests are a further development of the ones in
https://dart-review.googlesource.com/c/sdk/+/145862.

Change-Id: I13be746a05d5acf0117d8cb22151bd9863a71a78
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148324
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2020-07-02 13:39:39 +00:00
..
co19 [co19] Enable Language/Libraries_and_Scripts tests 2020-06-26 09:11:14 +00:00
co19_2 [co19] Re-enable tests skipped due to breaking change #40674 2020-05-12 14:51:19 +00:00
corelib [vm/corelib/nnbd] Fix null check in _GrowableList.length= 2020-06-30 17:14:14 +00:00
corelib_2 Revert "Fix duration.toString() to conform the description" 2020-06-22 10:29:15 +00:00
dart2js [dart2js] Ensure generic local functions are marked as potentially 2020-06-26 21:27:38 +00:00
dart2js_2 [dart2js] Ensure generic local functions are marked as potentially 2020-06-26 21:27:38 +00:00
dartdevc [dartdevc] Move opted out tests to tests/dartdevc and optin. 2020-06-18 18:46:16 +00:00
dartdevc_2 [dartdevc] Migrate tests/compiler/dartdevc_native to tests/dartdevc_2. 2020-06-17 18:14:00 +00:00
ffi [vm/ffi] Remove try-catch from ffi trampoline if no handle scope 2020-06-26 12:03:02 +00:00
ffi_2 [vm/ffi] Remove try-catch from ffi trampoline if no handle scope 2020-06-26 12:03:02 +00:00
kernel [VM] Fixes bad reuse/typing of temps in async transform invocations. 2020-03-06 12:20:45 +00:00
language For external/abstract fields: add tests and update Dart.g 2020-07-02 13:39:39 +00:00
language_2 [vm] Add a separate invoke field dispatcher for dynamic closure calls. 2020-07-02 13:16:19 +00:00
lib [dart:html] Revert commits using MDN compatibility info 2020-07-02 01:33:18 +00:00
lib_2 [web] Fix dart:mirrors and include it with the dart2js SDK so we ensure it doesn't break accidentally 2020-07-01 23:31:04 +00:00
modular [dart2js] Fix bug in modular_test_suite. 2020-05-28 21:30:36 +00:00
standalone Migrate standalone_2 to null safety. 2020-06-26 19:17:50 +00:00
standalone_2 [vm] Remove (unused & deprecated) --package-root parameter from VM binaries and from tests (Platform.packageRoot always returns null) 2020-06-24 18:17:53 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
README.md Update tests/README to point to new doc. 2019-08-06 22:19:42 +00:00

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.