dart-sdk/tests
Stephen Adams 1472eba52d js_runtime: Split _asyncHelper into separate functions
The separate functions have smaller call-sites and less overhead.

_asyncStart uses Future._nullFuture to avoid 1 allocation.

BUG=
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2858463002 .
2017-05-03 12:38:35 -07:00
..
_chrome Format all tests. 2017-04-17 14:53:02 -07:00
benchmark_smoke Dart SDK Spelling b, c, and d. 2017-05-01 08:28:10 +02:00
co19 Revert "Void is not required to be null anymore." 2017-05-03 19:22:22 +02:00
compiler js_runtime: Split _asyncHelper into separate functions 2017-05-03 12:38:35 -07:00
corelib Make json-maps implement Map<String, dynamic>. 2017-05-02 14:51:32 +02:00
corelib_strong Dart SDK Spelling b, c, and d. 2017-05-01 08:28:10 +02:00
html Fix status for new custom-elements + mirrors test 2017-05-02 18:42:30 -07:00
isolate Dart SDK Spelling b, c, and d. 2017-05-01 08:28:10 +02:00
kernel Format all tests. 2017-04-17 14:53:02 -07:00
language Revert "Void is not required to be null anymore." 2017-05-03 19:22:22 +02:00
language_strong add a test for #28079, dynamic calls to generic functions and other RTTI 2017-05-01 16:26:33 -07:00
lib Gardening: Mark two tests passing on dark(p). 2017-05-03 12:12:34 +02:00
lib_strong fix #29530, field metadata generation 2017-05-02 14:45:34 -07:00
standalone Fix path to test.dart in analyzer test for it. 2017-05-02 17:01:53 -07:00
utils Handle symbol literals in closed_world2_test 2017-05-03 10:41:59 +02:00
light_unittest.dart Format all tests. 2017-04-17 14:53:02 -07:00
README Remove old java-based analyzer from test scripts and status files 2015-12-17 14:44:57 +01:00

Run Existing Tests
==================

See the output of

  ../tools/test.py --help

for how to run tests.

See also

  https://code.google.com/p/dart/wiki/Building#Testing

for detailed examples.

Create New Tests
================

See comments above

  factory StandardTestSuite.forDirectory

in

  ../tools/testing/dart/test_suite.dart

for the default test directory layout. By default test-file names must
end in "_test.dart", but some test suites, such as ./co19, subclass
StandardTestSuite and override this default.

See comments at the beginning of

  ../tools/testing/dart/multitest.dart

for how to create tests that pass by failing with a known error. For
example,

  ...
  int x = "not an int"; /// 01: static type warning
  ...

as part of a test will only pass the "--compiler dart2analyzer" test if
the assignment generates a static type warning.