dart-sdk/tests
2015-06-29 13:43:57 +02:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke Implement try/finally by inlining the finally code. 2015-06-24 10:12:42 +02:00
co19 dart2js cps: Fix codegen for foreign statements. 2015-06-25 16:07:56 +02:00
compiler Compute constant constructors in resolution. 2015-06-29 12:56:06 +02:00
corelib Add tests for gcd, modInverse and modPow that also run on dart2js. 2015-06-26 11:05:11 +02:00
html Avoid multiline string literal in svgelement test. 2015-06-29 12:39:05 +02:00
isolate Implement try/finally by inlining the finally code. 2015-06-24 10:12:42 +02:00
language Fix some tests and exclude others from CRLF rewriting. 2015-06-26 14:40:01 +02:00
lib Ensure correct line endings for method_mirror_source tests. 2015-06-29 13:43:57 +02:00
standalone dart2js cps: Handle checks against mutable and extendable lists. 2015-06-25 15:03:00 +02:00
try Add Resource class. Currently unimplemented. 2015-06-26 11:42:02 +02:00
utils Implement try/finally by inlining the finally code. 2015-06-24 10:12:42 +02:00
light_unittest.dart Upgrading tests with unittest deprecations 2014-03-31 18:33:18 +00:00
README Add language tests for Issue 18628. 2014-09-03 18:51:25 +00: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 dartanalyzer" test if
the assignment generates a static type warning.