dart-sdk/tests
2015-09-01 15:39:31 +02:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke dart2js cps: Support JS_CURRENT_ISOLATE. 2015-07-07 15:55:13 +02:00
co19 Prepare for computation of NewStructure in Resolution. 2015-09-01 12:39:47 +02:00
compiler Split scannerlib.dart into several libraries. 2015-09-01 15:39:31 +02:00
corelib Update jsshell expectations for double parsing now that the problematic cases are separated out. 2015-09-01 12:09:17 +02:00
html cps_ir can't handle resource_http_test 2015-08-25 18:03:39 -07:00
isolate Implement new parameters on Isolate.spawn() for dart2js. 2015-08-19 13:52:36 +02:00
language Prepare for computation of NewStructure in Resolution. 2015-09-01 12:39:47 +02:00
lib dart2js cps: Use 'this' instead of receiver-arg when possible. 2015-08-26 16:06:41 +02:00
standalone Fix hostname checking problem in SecureSocket 2015-08-28 10:08:34 +02:00
try Split scannerlib.dart into several libraries. 2015-09-01 15:39:31 +02:00
utils dart2js cps: Fix performance issues in optimization passes. 2015-07-27 12:12:06 +02:00
light_unittest.dart
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.