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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/global/binstubs/binstub_runs_precompiled_snapshot_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, 2 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("the binstubs runs a precompiled snapshot if present", () { 7 integration("the binstubs runs a precompiled snapshot if present", () {
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 "foo-script": "script" 11 "foo-script": "script"
11 } 12 }
12 }, 13 },
13 contents: [ 14 contents: [
14 d.dir("bin", [d.file("script.dart", "main(args) => print('ok');")] )]); 15 d.dir("bin", [d.file("script.dart", "main(args) => print('ok');")] )]);
15 }); 16 });
16 schedulePub(args: ["global", "activate", "foo"]); 17 schedulePub(args: ["global", "activate", "foo"]);
17 d.dir( 18 d.dir(
18 cachePath, 19 cachePath,
19 [ 20 [
20 d.dir( 21 d.dir(
21 "bin", 22 "bin",
22 [d.matcherFile("foo-script", contains("script.dart.snapshot"))]) ]).validate(); 23 [
24 d.matcherFile(
25 binStubName("foo-script"),
26 contains("script.dart.snapshot"))])]).validate();
23 }); 27 });
24 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698