| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2014, 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:scheduled_test/scheduled_stream.dart'; | 5 import 'package:scheduled_test/scheduled_stream.dart'; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 | 7 |
| 10 import '../descriptor.dart' as d; | 8 import '../descriptor.dart' as d; |
| 11 import '../test_pub.dart'; | 9 import '../test_pub.dart'; |
| 12 import '../serve/utils.dart'; | 10 import '../serve/utils.dart'; |
| 13 | 11 |
| 14 const REJECT_CONFIG_TRANSFORMER = """ | 12 const REJECT_CONFIG_TRANSFORMER = """ |
| 15 import 'dart:async'; | 13 import 'dart:async'; |
| 16 | 14 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // We should see three instances of the error message, once for each | 48 // We should see three instances of the error message, once for each |
| 51 // use of the transformer. | 49 // use of the transformer. |
| 52 var pub = startPubServe(); | 50 var pub = startPubServe(); |
| 53 for (var i = 0; i < 3; i++) { | 51 for (var i = 0; i < 3; i++) { |
| 54 pub.stderr.expect(consumeThrough(endsWith('Error loading transformer: ' | 52 pub.stderr.expect(consumeThrough(endsWith('Error loading transformer: ' |
| 55 'I hate these settings!'))); | 53 'I hate these settings!'))); |
| 56 } | 54 } |
| 57 pub.shouldExit(1); | 55 pub.shouldExit(1); |
| 58 }); | 56 }); |
| 59 } | 57 } |
| OLD | NEW |