Files
sdk/tests
asgerf@google.com 08f7ee9410 Overhaul tree IR visitor and rename IR classes.
Changes in both IRs:
- ExecutableDefinition -> RootNode

- PassMixin has been removed and the Pass interface has been
  reduced to a single rewrite(RootNode) method.

- ConstructorDefinition no longer subclasses FunctionDefinition.

Changes in the cps IR:
- RunnableBody -> Body

Changes in tree IR:
- RootNodes have "forEachBody" and "replaceEachBody" helper methods that
  take care of the boilerplate for traversing roots and initializers.

- We now have visitors for initializers and root nodes. The RecursiveVisitor still
  just visits statements and expressions since forEachBody takes care of the root
  nodes and initializers.

- Initializers are no longer expressions. Why were they expressions?

- We now have a RecursiveTransformer class which behaves like RecursiveVisitor,
  except visitors are expected to return a transformed node.
  This removes a lot of boilerplate traversal from transformations.

R=kmillikin@google.com

Committed: https://code.google.com/p/dart/source/detail?r=45000

Reverted: https://code.google.com/p/dart/source/detail?r=45004

Review URL: https://codereview.chromium.org//1068243002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45006 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 13:18:53 +00:00
..
2015-04-09 12:45:06 +00:00
2015-02-23 21:31:12 +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.