| 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 'package:path/path.dart' as p; | 5 import 'package:path/path.dart' as p; |
| 8 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
| 9 import 'package:scheduled_test/scheduled_stream.dart'; | 7 import 'package:scheduled_test/scheduled_stream.dart'; |
| 10 | 8 |
| 11 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
| 12 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
| 13 | 11 |
| 14 main() { | 12 main() { |
| 15 integration("creates a snapshot for an immediate dependency's executables", | 13 integration("creates a snapshot for an immediate dependency's executables", |
| 16 () { | 14 () { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 35 process.stdout.expect("Precompiling executables..."); | 33 process.stdout.expect("Precompiling executables..."); |
| 36 process.stdout.expect(consumeThrough("hello!")); | 34 process.stdout.expect(consumeThrough("hello!")); |
| 37 process.shouldExit(); | 35 process.shouldExit(); |
| 38 | 36 |
| 39 d.dir(p.join(appPath, '.pub', 'bin'), [ | 37 d.dir(p.join(appPath, '.pub', 'bin'), [ |
| 40 d.file('sdk-version', '0.1.2+3'), | 38 d.file('sdk-version', '0.1.2+3'), |
| 41 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))]) | 39 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))]) |
| 42 ]).create(); | 40 ]).create(); |
| 43 }); | 41 }); |
| 44 } | 42 } |
| OLD | NEW |