OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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; | 5 library pub_tests; |
6 | 6 |
7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
8 | 8 |
9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
(...skipping 10 matching lines...) Expand all Loading... |
21 "transformers": ["myapp/src/transformer"] | 21 "transformers": ["myapp/src/transformer"] |
22 }), | 22 }), |
23 d.dir("lib", [d.dir("src", [ | 23 d.dir("lib", [d.dir("src", [ |
24 d.file("transformer.dart", "import 'does/not/exist.dart';") | 24 d.file("transformer.dart", "import 'does/not/exist.dart';") |
25 ])]) | 25 ])]) |
26 ]).create(); | 26 ]).create(); |
27 | 27 |
28 createLockFile('myapp', pkg: ['barback']); | 28 createLockFile('myapp', pkg: ['barback']); |
29 var pub = startPub(args: ['serve', '--port=0', "--hostname=127.0.0.1"]); | 29 var pub = startPub(args: ['serve', '--port=0', "--hostname=127.0.0.1"]); |
30 expect(pub.nextErrLine(), completion(matches(new RegExp( | 30 expect(pub.nextErrLine(), completion(matches(new RegExp( |
31 r"Error: line 1 pos 1: library handler failed$")))); | 31 r"error: line 1 pos 1: library handler failed$")))); |
32 pub.shouldExit(1); | 32 pub.shouldExit(1); |
33 }); | 33 }); |
34 } | 34 } |
OLD | NEW |