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 | 7 |
10 import '../descriptor.dart' as d; | 8 import '../descriptor.dart' as d; |
11 import '../test_pub.dart'; | 9 import '../test_pub.dart'; |
12 | 10 |
13 const BROKEN_TRANSFORMER = """ | 11 const BROKEN_TRANSFORMER = """ |
14 import 'dart:async'; | 12 import 'dart:async'; |
15 | 13 |
16 import 'package:barback/barback.dart'; | 14 import 'package:barback/barback.dart'; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 52 |
55 d.dir(p.join(appPath, '.pub', 'bin'), [ | 53 d.dir(p.join(appPath, '.pub', 'bin'), [ |
56 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))]) | 54 d.dir('foo', [d.matcherFile('hello.dart.snapshot', contains('hello!'))]) |
57 ]).validate(); | 55 ]).validate(); |
58 | 56 |
59 var process = pubRun(args: ['foo:hello']); | 57 var process = pubRun(args: ['foo:hello']); |
60 process.stdout.expect("hello!"); | 58 process.stdout.expect("hello!"); |
61 process.shouldExit(); | 59 process.shouldExit(); |
62 }); | 60 }); |
63 } | 61 } |
OLD | NEW |