| Index: dart/tests/compiler/dart2js/mini_parser_test.dart
|
| diff --git a/dart/tests/compiler/dart2js/mini_parser_test.dart b/dart/tests/compiler/dart2js/mini_parser_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5fd37bff98e6172ec39b0ecd042dd367540629df
|
| --- /dev/null
|
| +++ b/dart/tests/compiler/dart2js/mini_parser_test.dart
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +// Simple test to ensure that mini_parser keeps working.
|
| +
|
| +#import('../../../lib/compiler/implementation/tools/mini_parser.dart',
|
| + prefix: 'tool');
|
| +
|
| +void main() {
|
| + // Parse this script itself.
|
| + tool.toolMain(<String>[ new Options().script ]);
|
| +}
|
| +
|
| +/** This class is unused but used to test mini_parser.dart. */
|
| +class TestClass {
|
| + foo() {}
|
| + var i;
|
| +}
|
|
|