OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:expect/expect.dart'; | 5 import "package:expect/expect.dart"; |
6 import 'parser_helper.dart'; | 6 import 'parser_helper.dart'; |
| 7 import 'mock_compiler.dart'; |
7 import 'package:compiler/src/tree/tree.dart'; | 8 import 'package:compiler/src/tree/tree.dart'; |
8 | 9 |
9 testUnparse(String statement) { | 10 testUnparse(String statement) { |
10 Node node = parseStatement(statement); | 11 Node node = parseStatement(statement); |
11 Expect.equals(statement, unparse(node)); | 12 Expect.equals(statement, unparse(node)); |
12 } | 13 } |
13 | 14 |
14 testUnparseMember(String member) { | 15 testUnparseMember(String member) { |
15 Node node = parseMember(member); | 16 Node node = parseMember(member); |
16 Expect.equals(member, unparse(node)); | 17 Expect.equals(member, unparse(node)); |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 testPart(); | 387 testPart(); |
387 testPartOf(); | 388 testPartOf(); |
388 testCombinators(); | 389 testCombinators(); |
389 testDeferredImport(); | 390 testDeferredImport(); |
390 testRedirectingFactoryConstructors(); | 391 testRedirectingFactoryConstructors(); |
391 testClassDeclarations(); | 392 testClassDeclarations(); |
392 testMixinApplications(); | 393 testMixinApplications(); |
393 testParameters(); | 394 testParameters(); |
394 testSymbolLiterals(); | 395 testSymbolLiterals(); |
395 } | 396 } |
OLD | NEW |