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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/serve/gets_first_if_git_url_changed_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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; 5 library pub_tests;
6 6
7 import '../descriptor.dart' as d; 7 import '../descriptor.dart' as d;
8 import '../test_pub.dart'; 8 import '../test_pub.dart';
9 import 'utils.dart'; 9 import 'utils.dart';
10 10
11 main() { 11 main() {
12 initConfig(); 12 initConfig();
13 integration("gets first if a git dependency's url doesn't match the one in " 13 integration(
14 "the lock file", () { 14 "gets first if a git dependency's url doesn't match the one in "
15 d.git("foo-before.git", [ 15 "the lock file",
16 d.libPubspec("foo", "1.0.0"), 16 () {
17 d.libDir("foo", "before") 17 d.git(
18 ]).create(); 18 "foo-before.git",
19 [d.libPubspec("foo", "1.0.0"), d.libDir("foo", "before")]).create();
19 20
20 d.git("foo-after.git", [ 21 d.git(
21 d.libPubspec("foo", "1.0.0"), 22 "foo-after.git",
22 d.libDir("foo", "after") 23 [d.libPubspec("foo", "1.0.0"), d.libDir("foo", "after")]).create();
23 ]).create();
24 24
25 d.appDir({ 25 d.appDir({
26 "foo": {"git": "../foo-before.git"} 26 "foo": {
27 "git": "../foo-before.git"
28 }
27 }).create(); 29 }).create();
28 30
29 pubGet(); 31 pubGet();
30 32
31 // Change the path in the pubspec. 33 // Change the path in the pubspec.
32 d.appDir({ 34 d.appDir({
33 "foo": {"git": "../foo-after.git"} 35 "foo": {
36 "git": "../foo-after.git"
37 }
34 }).create(); 38 }).create();
35 39
36 pubServe(shouldGetFirst: true); 40 pubServe(shouldGetFirst: true);
37 requestShouldSucceed("packages/foo/foo.dart", 'main() => "after";'); 41 requestShouldSucceed("packages/foo/foo.dart", 'main() => "after";');
38 endPubServe(); 42 endPubServe();
39 }); 43 });
40 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698