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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/get/hosted/get_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
(Empty)
1 library pub_tests;
2 import '../../../lib/src/exit_codes.dart' as exit_codes;
3 import '../../descriptor.dart' as d;
4 import '../../test_pub.dart';
5 main() {
6 initConfig();
7 integration('gets a package from a pub server', () {
8 servePackages((builder) => builder.serve("foo", "1.2.3"));
9 d.appDir({
10 "foo": "1.2.3"
11 }).create();
12 pubGet();
13 d.cacheDir({
14 "foo": "1.2.3"
15 }).validate();
16 d.packagesDir({
17 "foo": "1.2.3"
18 }).validate();
19 });
20 integration('URL encodes the package name', () {
21 serveNoPackages();
22 d.appDir({
23 "bad name!": "1.2.3"
24 }).create();
25 pubGet(
26 error: new RegExp(
27 r"Could not find package bad name! at http://localhost:\d+\."),
28 exitCode: exit_codes.UNAVAILABLE);
29 });
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698