| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library pub_tests; | |
| 6 | |
| 7 import 'package:analyzer/analyzer.dart'; | 5 import 'package:analyzer/analyzer.dart'; |
| 8 import 'package:pub/src/exceptions.dart'; | 6 import 'package:pub/src/exceptions.dart'; |
| 9 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 10 | 8 |
| 11 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
| 12 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
| 13 import 'utils.dart'; | 11 import 'utils.dart'; |
| 14 | 12 |
| 15 void main() { | 13 void main() { |
| 16 integration("fails if an unknown package is imported", () { | 14 integration("fails if an unknown package is imported", () { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 "transformers": ["myapp"] | 38 "transformers": ["myapp"] |
| 41 }), | 39 }), |
| 42 d.dir('lib', [ | 40 d.dir('lib', [ |
| 43 d.file("myapp.dart", "library;") | 41 d.file("myapp.dart", "library;") |
| 44 ]) | 42 ]) |
| 45 ]).create(); | 43 ]).create(); |
| 46 | 44 |
| 47 expectException(new isInstanceOf<AnalyzerErrorGroup>()); | 45 expectException(new isInstanceOf<AnalyzerErrorGroup>()); |
| 48 }); | 46 }); |
| 49 } | 47 } |
| OLD | NEW |