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; | |
6 | |
7 import 'package:pub/src/exit_codes.dart' as exit_codes; | 5 import 'package:pub/src/exit_codes.dart' as exit_codes; |
8 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
9 import 'package:scheduled_test/scheduled_stream.dart'; | 7 import 'package:scheduled_test/scheduled_stream.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 | 11 |
14 const TRANSFORMER = """ | 12 const TRANSFORMER = """ |
15 import 'dart:async'; | 13 import 'dart:async'; |
16 | 14 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 80 |
83 // In barback >=0.15.0, the span will point to the location where the error | 81 // In barback >=0.15.0, the span will point to the location where the error |
84 // occurred. | 82 // occurred. |
85 pub.stderr.expect(allow(inOrder(["d", "^"]))); | 83 pub.stderr.expect(allow(inOrder(["d", "^"]))); |
86 | 84 |
87 pub.stderr.expect("Build failed."); | 85 pub.stderr.expect("Build failed."); |
88 | 86 |
89 pub.shouldExit(exit_codes.DATA); | 87 pub.shouldExit(exit_codes.DATA); |
90 }); | 88 }); |
91 } | 89 } |
OLD | NEW |