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

Side by Side Diff: sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart

Issue 745153002: Make pub's binstubs resilient to changes in snapshot format. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years 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) 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 'package:scheduled_test/scheduled_stream.dart'; 5 import 'package:scheduled_test/scheduled_stream.dart';
6 import 'package:scheduled_test/scheduled_test.dart'; 6 import 'package:scheduled_test/scheduled_test.dart';
7 7
8 import '../../descriptor.dart' as d; 8 import '../../descriptor.dart' as d;
9 import '../../test_pub.dart'; 9 import '../../test_pub.dart';
10 import 'utils.dart';
11 10
12 main() { 11 main() {
13 initConfig(); 12 initConfig();
14 integration("does not overwrite an existing binstub", () { 13 integration("does not overwrite an existing binstub", () {
15 d.dir("foo", [ 14 d.dir("foo", [
16 d.pubspec({ 15 d.pubspec({
17 "name": "foo", 16 "name": "foo",
18 "executables": { 17 "executables": {
19 "foo": "foo", 18 "foo": "foo",
20 "collide1": "foo", 19 "collide1": "foo",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 d.dir(cachePath, [ 52 d.dir(cachePath, [
54 d.dir("bin", [ 53 d.dir("bin", [
55 d.matcherFile(binStubName("foo"), contains("foo:foo")), 54 d.matcherFile(binStubName("foo"), contains("foo:foo")),
56 d.matcherFile(binStubName("bar"), contains("bar:bar")), 55 d.matcherFile(binStubName("bar"), contains("bar:bar")),
57 d.matcherFile(binStubName("collide1"), contains("foo:foo")), 56 d.matcherFile(binStubName("collide1"), contains("foo:foo")),
58 d.matcherFile(binStubName("collide2"), contains("foo:foo")) 57 d.matcherFile(binStubName("collide2"), contains("foo:foo"))
59 ]) 58 ])
60 ]).validate(); 59 ]).validate();
61 }); 60 });
62 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698