| 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 '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
| 8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
| 9 import '../serve/utils.dart'; | 7 import '../serve/utils.dart'; |
| 10 | 8 |
| 11 final transformer = """ | 9 final transformer = """ |
| 12 import 'dart:async'; | 10 import 'dart:async'; |
| 13 | 11 |
| 14 import 'package:barback/barback.dart'; | 12 import 'package:barback/barback.dart'; |
| 15 | 13 |
| 16 class RewriteTransformer extends Transformer { | 14 class RewriteTransformer extends Transformer { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 40 | 38 |
| 41 pubGet(); | 39 pubGet(); |
| 42 var server = pubServe(); | 40 var server = pubServe(); |
| 43 server.stderr.expect(emitsLines( | 41 server.stderr.expect(emitsLines( |
| 44 "Build error:\n" | 42 "Build error:\n" |
| 45 "Transform Rewrite on myapp|web/foo.txt threw error: Class " | 43 "Transform Rewrite on myapp|web/foo.txt threw error: Class " |
| 46 "'RewriteTransformer' has no instance method 'apply'.")); | 44 "'RewriteTransformer' has no instance method 'apply'.")); |
| 47 endPubServe(); | 45 endPubServe(); |
| 48 }); | 46 }); |
| 49 } | 47 } |
| OLD | NEW |