| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS 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 | 7 |
| 10 main() { | 8 main() { |
| 11 integration('recompiles activated executable snapshots', () { | 9 integration('recompiles activated executable snapshots', () { |
| 12 servePackages((builder) { | 10 servePackages((builder) { |
| 13 builder.serve("foo", "1.0.0", contents: [ | 11 builder.serve("foo", "1.0.0", contents: [ |
| 14 d.dir("bin", [ | 12 d.dir("bin", [ |
| 15 d.file("script.dart", "main(args) => print('ok');") | 13 d.file("script.dart", "main(args) => print('ok');") |
| 16 ]) | 14 ]) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 Precompiling executables... | 31 Precompiling executables... |
| 34 Loading source assets... | 32 Loading source assets... |
| 35 Precompiled foo:script. | 33 Precompiled foo:script. |
| 36 Reactivated 1 package.'''); | 34 Reactivated 1 package.'''); |
| 37 | 35 |
| 38 var pub = pubRun(global: true, args: ["foo:script"]); | 36 var pub = pubRun(global: true, args: ["foo:script"]); |
| 39 pub.stdout.expect("ok"); | 37 pub.stdout.expect("ok"); |
| 40 pub.shouldExit(); | 38 pub.shouldExit(); |
| 41 }); | 39 }); |
| 42 } | 40 } |
| OLD | NEW |