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 '../descriptor.dart' as d; | 5 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 6 import '../test_pub.dart'; |
9 import 'utils.dart'; | 7 import 'utils.dart'; |
10 | 8 |
11 const DECLARING_TRANSFORMER = """ | 9 const DECLARING_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 DeclaringRewriteTransformer extends Transformer | 14 class DeclaringRewriteTransformer extends Transformer |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 61 |
64 requestShouldSucceed("foo.final", "foo.out.final"); | 62 requestShouldSucceed("foo.final", "foo.out.final"); |
65 server.stdout.expect(emitsLines( | 63 server.stdout.expect(emitsLines( |
66 '[Info from LazyRewrite]:\n' | 64 '[Info from LazyRewrite]:\n' |
67 'Rewriting myapp|web/foo.txt.\n' | 65 'Rewriting myapp|web/foo.txt.\n' |
68 '[Info from DeclaringRewrite]:\n' | 66 '[Info from DeclaringRewrite]:\n' |
69 'Rewriting myapp|web/foo.out.')); | 67 'Rewriting myapp|web/foo.out.')); |
70 endPubServe(); | 68 endPubServe(); |
71 }); | 69 }); |
72 } | 70 } |
OLD | NEW |