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 // Test that parameters keep their names in the output. | 4 // Test that parameters keep their names in the output. |
5 | 5 |
| 6 import 'dart:async'; |
6 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
7 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
8 import 'compiler_helper.dart'; | 9 import 'compiler_helper.dart'; |
| 10 import 'parser_helper.dart'; |
9 | 11 |
10 const String TEST_ONE = r""" | 12 const String TEST_ONE = r""" |
11 class A { } | 13 class A { } |
12 class B { } | 14 class B { } |
13 | 15 |
14 main() { | 16 main() { |
15 new A(); | 17 new A(); |
16 new B(); | 18 new B(); |
17 } | 19 } |
18 """; | 20 """; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 Expect.isTrue(generated.contains(new RegExp(r"new [$A-Z]+\.A\(a\);"))); | 94 Expect.isTrue(generated.contains(new RegExp(r"new [$A-Z]+\.A\(a\);"))); |
93 })); | 95 })); |
94 } | 96 } |
95 | 97 |
96 main() { | 98 main() { |
97 twoClasses(); | 99 twoClasses(); |
98 subClass(); | 100 subClass(); |
99 fieldTest(); | 101 fieldTest(); |
100 constructor1(); | 102 constructor1(); |
101 } | 103 } |
OLD | NEW |