| 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 // Test that deprecated language features are diagnosed correctly. | 5 // Test that deprecated language features are diagnosed correctly. |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; |
| 7 import 'dart:async'; | 8 import 'dart:async'; |
| 8 import 'dart:uri'; | 9 import 'dart:uri'; |
| 9 | 10 |
| 10 import '../../../sdk/lib/_internal/compiler/compiler.dart'; | 11 import '../../../sdk/lib/_internal/compiler/compiler.dart'; |
| 11 import '../../utils/dummy_compiler_test.dart' as dummy; | 12 import '../../utils/dummy_compiler_test.dart' as dummy; |
| 12 | 13 |
| 13 main() { | 14 main() { |
| 14 StringBuffer messages = new StringBuffer(); | 15 StringBuffer messages = new StringBuffer(); |
| 15 void handler(Uri uri, int begin, int end, String message, Diagnostic kind) { | 16 void handler(Uri uri, int begin, int end, String message, Diagnostic kind) { |
| 16 if (kind == Diagnostic.VERBOSE_INFO) return; | 17 if (kind == Diagnostic.VERBOSE_INFO) return; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 main() { | 103 main() { |
| 103 var a = Foo.bar(); | 104 var a = Foo.bar(); |
| 104 var b = new Foo.bar(); | 105 var b = new Foo.bar(); |
| 105 new Fisk(); | 106 new Fisk(); |
| 106 new Fisk.hest(); | 107 new Fisk.hest(); |
| 107 } | 108 } |
| 108 """, | 109 """, |
| 109 // TODO(ahe): Why isn't this 'part.dart'? Why the leading slash? | 110 // TODO(ahe): Why isn't this 'part.dart'? Why the leading slash? |
| 110 '/part.dart': '', | 111 '/part.dart': '', |
| 111 }; | 112 }; |
| OLD | NEW |