dart-sdk/tests
2015-03-26 21:50:44 +00:00
..
_chrome Improve handling of intentionally broken links in test scripts. 2014-11-04 15:00:00 +00:00
benchmark_smoke
co19 Fix status file for FontFace tests that now pass 2015-03-25 20:04:01 +00:00
compiler Implement ResolvedVisitor using SemanticSendVisitor. 2015-03-26 14:49:24 +00:00
corelib Clean up apply2-test. 2015-03-25 07:01:46 +00:00
html Fix status file for FontFace tests that now pass 2015-03-25 20:04:01 +00:00
isolate Fix for issue 22778, stored the function object in the forward reference table instead of the implicit static closure. 2015-03-13 15:53:50 +00:00
language Allow "dynamic" as a constant value in analyzer. 2015-03-26 21:50:44 +00:00
lib Treat functions generated for closurization as equivalent to their source functions. 2015-03-24 20:06:40 +00:00
standalone Add regression test for Map compaction issue. 2015-03-25 22:26:12 +00:00
try Move more tests to SkipByDesign 2015-02-23 21:31:12 +00:00
utils Mark tests that crashes in host-checked mode 2015-03-12 15:25:57 +00: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.