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"; | |
6 import 'dart:uri'; | 5 import 'dart:uri'; |
7 import 'parser_helper.dart'; | 6 import 'parser_helper.dart'; |
8 import 'mock_compiler.dart'; | 7 import 'mock_compiler.dart'; |
9 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
10 | 9 |
11 testUnparse(String statement) { | 10 testUnparse(String statement) { |
12 Node node = parseStatement(statement); | 11 Node node = parseStatement(statement); |
13 Expect.equals(statement, unparse(node)); | 12 Expect.equals(statement, unparse(node)); |
14 } | 13 } |
15 | 14 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 testImport(); | 356 testImport(); |
358 testExport(); | 357 testExport(); |
359 testPart(); | 358 testPart(); |
360 testPartOf(); | 359 testPartOf(); |
361 testCombinators(); | 360 testCombinators(); |
362 testRedirectingFactoryConstructors(); | 361 testRedirectingFactoryConstructors(); |
363 testClassDeclarations(); | 362 testClassDeclarations(); |
364 testMixinApplications(); | 363 testMixinApplications(); |
365 testParameters(); | 364 testParameters(); |
366 } | 365 } |
OLD | NEW |