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 const TRANSFORMER = """ | 9 const 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 29 matching lines...) Expand all Loading... |
46 d.file("foo.txt", "foo") | 44 d.file("foo.txt", "foo") |
47 ]) | 45 ]) |
48 ]).create(); | 46 ]).create(); |
49 | 47 |
50 pubGet(); | 48 pubGet(); |
51 pubServe(); | 49 pubServe(); |
52 requestShouldSucceed("foo.out", "[[102, 111, 111]].out"); | 50 requestShouldSucceed("foo.out", "[[102, 111, 111]].out"); |
53 endPubServe(); | 51 endPubServe(); |
54 }); | 52 }); |
55 } | 53 } |
OLD | NEW |