Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: sdk/lib/_internal/pub_generated/test/global/binstubs/removes_when_deactivated_test.dart

Issue 599343003: Get binstubs working on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 import 'package:scheduled_test/scheduled_test.dart'; 1 import 'package:scheduled_test/scheduled_test.dart';
2 import '../../descriptor.dart' as d; 2 import '../../descriptor.dart' as d;
3 import '../../test_pub.dart'; 3 import '../../test_pub.dart';
4 import 'utils.dart';
4 main() { 5 main() {
5 initConfig(); 6 initConfig();
6 integration("removes binstubs when the package is deactivated", () { 7 integration("removes binstubs when the package is deactivated", () {
7 servePackages((builder) { 8 servePackages((builder) {
8 builder.serve("foo", "1.0.0", pubspec: { 9 builder.serve("foo", "1.0.0", pubspec: {
9 "executables": { 10 "executables": {
10 "one": null, 11 "one": null,
11 "two": null 12 "two": null
12 } 13 }
13 }, 14 },
14 contents: [ 15 contents: [
15 d.dir( 16 d.dir(
16 "bin", 17 "bin",
17 [ 18 [
18 d.file("one.dart", "main(args) => print('one');"), 19 d.file("one.dart", "main(args) => print('one');"),
19 d.file("two.dart", "main(args) => print('two');")])]); 20 d.file("two.dart", "main(args) => print('two');")])]);
20 }); 21 });
21 schedulePub(args: ["global", "activate", "foo"]); 22 schedulePub(args: ["global", "activate", "foo"]);
22 schedulePub(args: ["global", "deactivate", "foo"]); 23 schedulePub(args: ["global", "deactivate", "foo"]);
23 d.dir( 24 d.dir(
24 cachePath, 25 cachePath,
25 [d.dir("bin", [d.nothing("one"), d.nothing("two")])]).validate(); 26 [
27 d.dir(
28 "bin",
29 [d.nothing(binStubName("one")), d.nothing(binStubName("two"))])] ).validate();
26 }); 30 });
27 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698