dart-sdk/tests
2015-10-19 11:28:53 -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 Update status for failing tests 2015-10-16 14:00:48 +02:00
compiler dart2js cps_ir: Unary operator improvements 2015-10-15 12:00:15 -07:00
corelib Fix bug in Uri.removeFragment. 2015-10-15 12:42:36 +02:00
html Hide internal methods like wrap_jso from the dart:html public interface 2015-10-19 11:28:53 -07:00
isolate 1. Write the backing data array of a GrowableObjectArray as a reference 2015-10-12 12:45:59 -07:00
language Generalize and_operation_on_non_int_operand_test. 2015-10-16 10:29:14 -07:00
lib Add a 'secure' constructor to Random in dart:math returning a cryptographically 2015-10-15 10:16:03 -07:00
standalone dart2js cps: Ensure parameter default values are emitted. 2015-10-16 17:00:32 +02:00
try Suppress IFrame failing test for try.dartlang.org as well 2015-10-12 16:40:54 -07:00
utils dart2js: Mark source_mirrors_test as slow 2015-09-25 18:30:21 +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.