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

Side by Side Diff: test/run/resource_test.dart

Issue 1282533003: Don't implicitly run "pub get". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 5 years, 4 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
OLDNEW
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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:path/path.dart' as p; 7 import 'package:path/path.dart' as p;
8 import 'package:scheduled_test/scheduled_test.dart'; 8 import 'package:scheduled_test/scheduled_test.dart';
9 9
10 import '../descriptor.dart' as d; 10 import '../descriptor.dart' as d;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // TODO(nweiz): Enable this when sdk#23990 is fixed. 43 // TODO(nweiz): Enable this when sdk#23990 is fixed.
44 // print(resource.uri); 44 // print(resource.uri);
45 45
46 print(await resource.readAsString()); 46 print(await resource.readAsString());
47 } 47 }
48 """) 48 """)
49 ]) 49 ])
50 ]).create(); 50 ]).create();
51 51
52 var pub = pubRun(args: ["bin/script"], shouldGetFirst: true); 52 pubGet();
53 var pub = pubRun(args: ["bin/script"]);
53 54
54 // TODO(nweiz): Enable this when sdk#23990 is fixed. 55 // TODO(nweiz): Enable this when sdk#23990 is fixed.
55 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt"))); 56 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt")));
56 57
57 pub.stdout.expect("hello!"); 58 pub.stdout.expect("hello!");
58 pub.shouldExit(0); 59 pub.shouldExit(0);
59 }); 60 });
60 61
61 integration("the spawned application can load a dependency's resource", () { 62 integration("the spawned application can load a dependency's resource", () {
62 d.dir("foo", [ 63 d.dir("foo", [
(...skipping 14 matching lines...) Expand all
77 78
78 // TODO(nweiz): Enable this when sdk#23990 is fixed. 79 // TODO(nweiz): Enable this when sdk#23990 is fixed.
79 // print(resource.uri); 80 // print(resource.uri);
80 81
81 print(await resource.readAsString()); 82 print(await resource.readAsString());
82 } 83 }
83 """) 84 """)
84 ]) 85 ])
85 ]).create(); 86 ]).create();
86 87
87 var pub = pubRun(args: ["bin/script"], shouldGetFirst: true); 88 pubGet();
89 var pub = pubRun(args: ["bin/script"]);
88 90
89 // TODO(nweiz): Enable this when sdk#23990 is fixed. 91 // TODO(nweiz): Enable this when sdk#23990 is fixed.
90 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); 92 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt")));
91 93
92 pub.stdout.expect("hello!"); 94 pub.stdout.expect("hello!");
93 pub.shouldExit(0); 95 pub.shouldExit(0);
94 }); 96 });
95 97
96 withBarbackVersions("any", () { 98 withBarbackVersions("any", () {
97 integration('the spawned application can load a transformed resource', () { 99 integration('the spawned application can load a transformed resource', () {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 165
164 var pub = pubRun(args: ["foo:script"]); 166 var pub = pubRun(args: ["foo:script"]);
165 167
166 // TODO(nweiz): Enable this when sdk#23990 is fixed. 168 // TODO(nweiz): Enable this when sdk#23990 is fixed.
167 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); 169 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt")));
168 170
169 pub.stdout.expect("hello!"); 171 pub.stdout.expect("hello!");
170 pub.shouldExit(0); 172 pub.shouldExit(0);
171 }); 173 });
172 } 174 }
OLDNEW
« no previous file with comments | « test/run/passes_along_arguments_test.dart ('k') | test/run/runs_app_in_directory_in_entrypoint_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698