Chromium Code Reviews| Index: tests/compiler/dart2js/unparser_test.dart |
| diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart |
| index 184b4d448484f31fbd50de93a0ce5dac1c5a71e7..a759a0a34535887017c86850bb713f737eef3313 100644 |
| --- a/tests/compiler/dart2js/unparser_test.dart |
| +++ b/tests/compiler/dart2js/unparser_test.dart |
| @@ -132,6 +132,16 @@ testSimpleTopLevelClass() { |
| testDart2Dart(src, (String s) => Expect.equals(src, s)); |
| } |
| +testClassWithSynthesizedConstructor() { |
| + final src = 'main(){new A();}class A{}'; |
| + testDart2Dart(src, (String s) => Expect.equals(src, s)); |
|
Anton Muhin
2012/07/10 13:27:46
definitely the time to introduce a helper which ch
Roman
2012/07/10 13:47:16
Done. If no continuation is passed to testDart2Dar
|
| +} |
| + |
| +testClassWithMethod() { |
| + final src = 'main(){var a=new A(); a.foo();}class A{void foo(){}}'; |
| + testDart2Dart(src, (String s) => Expect.equals(src, s)); |
| +} |
| + |
| main() { |
| testGenericTypes(); |
| testForLoop(); |
| @@ -144,5 +154,7 @@ main() { |
| testSimpleFileUnparse(); |
| testSimpleObjectInstantiation(); |
| testSimpleTopLevelClass(); |
| + testClassWithSynthesizedConstructor(); |
| + testClassWithMethod(); |
| testTopLevelField(); |
| } |