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:pub/src/exit_codes.dart' as exit_codes; |
7 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
8 import 'package:scheduled_test/scheduled_stream.dart'; | 9 import 'package:scheduled_test/scheduled_stream.dart'; |
9 | 10 |
10 import '../../lib/src/exit_codes.dart' as exit_codes; | |
11 import '../descriptor.dart' as d; | 11 import '../descriptor.dart' as d; |
12 import '../test_pub.dart'; | 12 import '../test_pub.dart'; |
13 | 13 |
14 const SOURCE_MAPS_TRANSFORMER = """ | 14 const SOURCE_MAPS_TRANSFORMER = """ |
15 import 'dart:async'; | 15 import 'dart:async'; |
16 | 16 |
17 import 'package:barback/barback.dart'; | 17 import 'package:barback/barback.dart'; |
18 import 'package:source_maps/source_maps.dart'; | 18 import 'package:source_maps/source_maps.dart'; |
19 | 19 |
20 class RewriteTransformer extends Transformer { | 20 class RewriteTransformer extends Transformer { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // In barback >=0.15.0, the span will point to the location where the error | 116 // In barback >=0.15.0, the span will point to the location where the error |
117 // occurred. | 117 // occurred. |
118 pub.stderr.expect(allow(inOrder(["d", "^"]))); | 118 pub.stderr.expect(allow(inOrder(["d", "^"]))); |
119 | 119 |
120 pub.stderr.expect("Build failed."); | 120 pub.stderr.expect("Build failed."); |
121 | 121 |
122 pub.shouldExit(exit_codes.DATA); | 122 pub.shouldExit(exit_codes.DATA); |
123 }); | 123 }); |
124 } | 124 } |
OLD | NEW |