| 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; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_stream.dart'; | 7 import 'package:scheduled_test/scheduled_stream.dart'; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 8 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 | 9 |
| 10 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 }), | 69 }), |
| 70 d.dir("bin", [ | 70 d.dir("bin", [ |
| 71 d.file("myapp.dart", "main() => print('Hello!');") | 71 d.file("myapp.dart", "main() => print('Hello!');") |
| 72 ]) | 72 ]) |
| 73 ]).create(); | 73 ]).create(); |
| 74 | 74 |
| 75 pubGet(); | 75 pubGet(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 main() { | 78 main() { |
| 79 initConfig(); | |
| 80 | |
| 81 integration("caches a transformer snapshot", () { | 79 integration("caches a transformer snapshot", () { |
| 82 setUp(); | 80 setUp(); |
| 83 | 81 |
| 84 var process = pubRun(args: ['myapp']); | 82 var process = pubRun(args: ['myapp']); |
| 85 process.stdout.expect("Goodbye!"); | 83 process.stdout.expect("Goodbye!"); |
| 86 process.shouldExit(); | 84 process.shouldExit(); |
| 87 | 85 |
| 88 d.dir(appPath, [ | 86 d.dir(appPath, [ |
| 89 d.dir(".pub/transformers", [ | 87 d.dir(".pub/transformers", [ |
| 90 d.file("manifest.txt", "0.1.2+3\nfoo"), | 88 d.file("manifest.txt", "0.1.2+3\nfoo"), |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 Future apply(Transform transform) { | 337 Future apply(Transform transform) { |
| 340 return transform.primaryInput.readAsString().then((contents) { | 338 return transform.primaryInput.readAsString().then((contents) { |
| 341 transform.addOutput(new Asset.fromString( | 339 transform.addOutput(new Asset.fromString( |
| 342 transform.primaryInput.id, | 340 transform.primaryInput.id, |
| 343 contents.replaceAll("$input", "$output"))); | 341 contents.replaceAll("$input", "$output"))); |
| 344 }); | 342 }); |
| 345 } | 343 } |
| 346 } | 344 } |
| 347 """; | 345 """; |
| 348 } | 346 } |
| OLD | NEW |