dart-sdk/tests
Natalie Weizenbaum bdd5803006 Fix a WebSocket crash.
Previously, a WebSocket would crash if it was closed after its
StreamSubscription was canceled. Now, it tracks whether the subscription
was canceled by canceling and nulling out its own internal subscription.

Fixes #23845

R=ajohnsen@google.com

Review URL: https://codereview.chromium.org//1234163002 .
2015-07-15 13:30:06 -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 a few more things to make Dartium build w/o --gen-interop 2015-07-14 07:17:59 -07:00
compiler Allow return <expr> in sync* and async* javascript. 2015-07-15 16:59:05 +02:00
corelib Remove functions white-listed for use of try-finally and switch, add JS_SET_CURRENT_ISOLATE. 2015-07-14 10:26:38 +02:00
html Update status for failing dartium tests 2015-07-15 17:34:14 +02:00
isolate Remove functions white-listed for use of try-finally and switch, add JS_SET_CURRENT_ISOLATE. 2015-07-14 10:26:38 +02:00
language Allow return <expr> in sync* and async* javascript. 2015-07-15 16:59:05 +02:00
lib Update status of flaky windows vm tests 2015-07-15 17:34:37 +02:00
standalone Fix a WebSocket crash. 2015-07-15 13:30:06 -07:00
try Add Resource class. Currently unimplemented. 2015-06-26 11:42:02 +02:00
utils dart2js cps: Update test expectations after 6b36c8acc6. 2015-07-10 14:19:10 +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.