dart-sdk/tests
Johnni Winther 583fd470d8 Add source location to function declarations.
Temporarily adds source location to function declarations in the new source info system.

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1773553002 .
2016-03-08 10:30:13 +01:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke Update status of cpsir tests in checked mode: skipping for now, since more than 2016-03-07 10:20:41 -08:00
co19 More MIPS status cleanup. 2016-03-07 16:37:48 -08:00
compiler Add source location to function declarations. 2016-03-08 10:30:13 +01:00
corelib Update status for a slow test and a crashing test. 2016-03-07 17:59:16 +01:00
html websql_test/functional shouldn't be suppressed on ie11 2016-03-07 13:07:36 -08:00
isolate Update status of cpsir tests in checked mode: skipping for now, since more than 2016-03-07 10:20:41 -08:00
language More MIPS status cleanup. 2016-03-07 16:37:48 -08:00
lib Skip mirror tests more generally for $mode == product instead of $runtime == dart_product. 2016-03-03 10:06:59 -08:00
standalone More MIPS status cleanup. 2016-03-07 16:37:48 -08:00
try Change the order the classes are expected to be found by serialize_test 2015-12-07 16:29:26 +01:00
utils Update status for dart2js --cps_ir --host_checked. 2016-03-07 11:35:11 +01:00
light_unittest.dart
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.