dart-sdk/tests
Zach Anderson b3093ecee6 [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes
On Windows, some Windows 10 builds support only ANSI output, but not
input, so these need to be separated.

I'm also improving the detection on Mac and Linux to avoid hardcoding
the result. Instead, supportsAnsiEscapes will be true if isatty() and
the TERM environment variable contains the string 'xterm'.

related #28614

R=lrn@google.com

Review-Url: https://codereview.chromium.org/2753233002 .
2017-03-17 12:35:36 -07:00
..
_chrome
benchmark_smoke Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01:00
co19 Update status for kernel per 8979b040ec. 2017-03-17 19:50:38 +01:00
compiler Track async state in parser. 2017-03-17 14:43:07 +01:00
corelib Update firefox status for Unicode 6.3 test 2017-03-14 14:39:37 +01:00
corelib_strong Redo "Remove U+180E from whitespace in js_runtime and tests" 2017-03-13 21:43:05 -07:00
html Update status for co19 tests on Chrome 57. 2017-03-13 14:21:33 +01:00
isolate [Fuchsia] Update test status files 2017-02-10 21:34:33 -08:00
kernel Switch -c dartk/dartkp configuration to use fasta. 2017-02-26 20:39:02 +01:00
language Improve parsing of async and generator methods. 2017-03-17 18:03:42 +01:00
language_strong Update status for analyze strong mode 2017-03-14 15:53:35 +01:00
lib Adjust status file for dart2js failure on invocation_fuzz_test (issue 29086) 2017-03-15 17:31:20 -07:00
lib_strong Fix equality invocation on native objects 2017-03-14 15:27:27 -07:00
standalone [dart:io] Move Platform.ansiSupported to {Stdin,Stdout}.supportsAnsiEscapes 2017-03-17 12:35:36 -07:00
utils Remove status file sections for the CPS IR. 2017-02-28 17:11:19 +01:00
light_unittest.dart
README

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 dart2analyzer" test if
the assignment generates a static type warning.