dart-sdk/tests
Paul Berry 0d42430ed8 Change the implicit tear-off of call methods to be null-aware.
We want the implicit tear-off of a `call` method to succeed even if
the value is `null`, so we need the implicit tear-off to be equivalent
to `?.call`.

Change-Id: I5134858b84e501081a52d59b78b101597bdfcc4a
Reviewed-on: https://dart-review.googlesource.com/43480
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-02-27 09:44:27 +00:00
..
angular
co19 Skip co19 tests in dartk and dartkp modes as these tests are not 2018-02-27 00:33:38 +00:00
co19_2 Update fasta parser listeners to generate additional errors 2018-02-26 19:48:25 +00:00
compiler Fail if mirrors are really used. 2018-02-27 04:57:27 +00:00
corelib Fail if mirrors are really used. 2018-02-27 04:57:27 +00:00
corelib_2 Fail if mirrors are really used. 2018-02-27 04:57:27 +00:00
dart
html Install JS-interop properties on JavaScriptObject 2018-02-23 00:31:52 +00:00
isolate Move new tests from tests/isolate to tests/lib_2/isolate. 2018-02-22 10:03:23 +00:00
kernel Fix bot 2018-02-27 06:56:30 +00:00
language Fail if mirrors are really used. 2018-02-27 04:57:27 +00:00
language_2 Change the implicit tear-off of call methods to be null-aware. 2018-02-27 09:44:27 +00:00
lib Skip 'lib' test directory when running tests in dartk or dartkp mode 2018-02-27 01:35:14 +00:00
lib_2 Update HTML worker test status on Chrome with CSP (content security protocol) 2018-02-26 12:30:38 +00:00
search
standalone Skip remaining Dart 1.0 tests 2018-02-15 14:14:07 +00:00
standalone_2 Update status for dartk on standalone test that times out or passes 2018-02-23 09:27:46 +00:00
light_unittest.dart
README

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.