dart-sdk/tests
Lasse R.H. Nielsen 51fa195f16 Revert "Make List constructor give better error messages for non-int arguments"
There are VM-only tests that assume exact text of failure.

BUG=

Review URL: https://codereview.chromium.org//1294483003 .
2015-08-14 15:05:17 +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 dart2js cps: Support async/await by rewriting the JavaScript AST. 2015-08-07 11:27:40 +02:00
compiler Move diagnostic_listener.dart and messages.dart to the diagnostics folder 2015-08-12 12:05:36 +02:00
corelib Revert "Make List constructor give better error messages for non-int arguments" 2015-08-14 15:05:17 +02:00
html Update status for Chrome 44 on dart2js tests. 2015-07-22 18:02:03 +02:00
isolate 1. Reclaim the CreatedFromSnapshot bit and use the bit to indicate VM heap object. 2015-08-10 11:02:31 -07:00
language dart2js cps: Fix treatment of captured type variables. 2015-08-13 13:35:50 +02:00
lib Don't delay values and errors from async/await functions. 2015-08-13 13:00:11 +02:00
standalone Make HttpClient not send fragments as part of request. 2015-08-10 12:18:12 +02:00
try Remove dart2jslib.dart 2015-08-12 08:42:46 +02:00
utils dart2js cps: Fix performance issues in optimization passes. 2015-07-27 12:12:06 +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.