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

Side by Side Diff: test/transformer/configuration/configuration_defaults_to_empty_map_test.dart

Issue 1523323004: Install barback from a hosted source in all tests. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Merge for real. Created 5 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
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 'dart:convert'; 7 import 'dart:convert';
8 8
9 import '../../descriptor.dart' as d; 9 import '../../descriptor.dart' as d;
10 import '../../test_pub.dart'; 10 import '../../test_pub.dart';
(...skipping 17 matching lines...) Expand all
28 var id = transform.primaryInput.id.changeExtension(".json"); 28 var id = transform.primaryInput.id.changeExtension(".json");
29 transform.addOutput( 29 transform.addOutput(
30 new Asset.fromString(id, JSON.encode(settings.configuration))); 30 new Asset.fromString(id, JSON.encode(settings.configuration)));
31 }); 31 });
32 } 32 }
33 } 33 }
34 """; 34 """;
35 35
36 main() { 36 main() {
37 integration("configuration defaults to an empty map", () { 37 integration("configuration defaults to an empty map", () {
38 serveBarback();
39
38 d.dir(appPath, [ 40 d.dir(appPath, [
39 d.pubspec({ 41 d.pubspec({
40 "name": "myapp", 42 "name": "myapp",
41 "transformers": ["myapp/src/transformer"] 43 "transformers": ["myapp/src/transformer"],
44 "dependencies": {"barback": "any"}
42 }), 45 }),
43 d.dir("lib", [d.dir("src", [ 46 d.dir("lib", [d.dir("src", [
44 d.file("transformer.dart", transformer) 47 d.file("transformer.dart", transformer)
45 ])]), 48 ])]),
46 d.dir("web", [ 49 d.dir("web", [
47 d.file("foo.txt", "foo") 50 d.file("foo.txt", "foo")
48 ]) 51 ])
49 ]).create(); 52 ]).create();
50 53
51 createLockFile('myapp', pkg: ['barback']); 54 pubGet();
52
53 var server = pubServe(); 55 var server = pubServe();
54 requestShouldSucceed("foo.json", JSON.encode({})); 56 requestShouldSucceed("foo.json", JSON.encode({}));
55 endPubServe(); 57 endPubServe();
56 }); 58 });
57 } 59 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698