dart-sdk/tests
2015-09-22 09:28:38 -07: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 Fixed typo and test that passes and fails in checked mode 2015-09-22 07:59:37 -07:00
compiler Update dart2js status for failing tests 2015-09-22 14:09:23 +02:00
corelib Update range errors to agree on the numbers. 2015-09-11 13:05:36 +02:00
html Omit extra argument to createElement/NS if null 2015-09-22 09:28:38 -07:00
isolate Fix for issue 24243 (allow objects of dart:core and dart:collections to be passed in for now, we need a whitelist of core types against which we need to check) 2015-09-16 12:08:45 -07:00
language dart2js cps: Set result of 'await' to dynamic instead of empty. 2015-09-21 11:37:39 +02:00
lib Revert "Mark tests problems because of Dartium JSInterop" 2015-09-18 11:00:54 -07:00
standalone dart2js cps: Remove code after calls that cannot return. 2015-09-15 17:46:48 +02:00
try Revert "Update status of try tests on dartium" 2015-09-11 16:30:35 +02:00
utils Revert "Mark tests problems because of Dartium JSInterop" 2015-09-18 11:00:54 -07: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.