| 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 '../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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 d.file("foo.txt", "foo") | 47 d.file("foo.txt", "foo") |
| 50 ]) | 48 ]) |
| 51 ]).create(); | 49 ]).create(); |
| 52 | 50 |
| 53 pubGet(); | 51 pubGet(); |
| 54 pubServe(); | 52 pubServe(); |
| 55 requestShouldSucceed("foo.out", "primary: true, secondary: false"); | 53 requestShouldSucceed("foo.out", "primary: true, secondary: false"); |
| 56 endPubServe(); | 54 endPubServe(); |
| 57 }); | 55 }); |
| 58 } | 56 } |
| OLD | NEW |