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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/runs_one_third_party_transformer_on_another_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 '../serve/utils.dart'; 9 import '../serve/utils.dart';
10 10
11 main() { 11 main() {
12 initConfig(); 12 initConfig();
13 withBarbackVersions("any", () { 13 withBarbackVersions("any", () {
14 integration("runs one third-party transformer on another", () { 14 integration("runs one third-party transformer on another", () {
15 d.dir("foo", [ 15 d.dir("foo", [d.pubspec({
16 d.pubspec({
17 "name": "foo", 16 "name": "foo",
18 "version": "1.0.0" 17 "version": "1.0.0"
19 }), 18 }),
20 d.dir("lib", [ 19 d.dir("lib", [d.file("transformer.dart", dartTransformer('foo')),])] ).create();
21 d.file("transformer.dart", dartTransformer('foo')),
22 ])
23 ]).create();
24 20
25 d.dir("bar", [ 21 d.dir("bar", [d.pubspec({
26 d.pubspec({
27 "name": "bar", 22 "name": "bar",
28 "version": "1.0.0", 23 "version": "1.0.0",
29 "transformers": ["foo/transformer"], 24 "transformers": ["foo/transformer"],
30 "dependencies": {"foo": {"path": "../foo"}} 25 "dependencies": {
26 "foo": {
27 "path": "../foo"
28 }
29 }
31 }), 30 }),
32 d.dir("lib", [ 31 d.dir("lib", [d.file("transformer.dart", dartTransformer('bar')),])] ).create();
33 d.file("transformer.dart", dartTransformer('bar')),
34 ])
35 ]).create();
36 32
37 d.dir(appPath, [ 33 d.dir(appPath, [d.pubspec({
38 d.pubspec({
39 "name": "myapp", 34 "name": "myapp",
40 "transformers": ["bar/transformer"], 35 "transformers": ["bar/transformer"],
41 "dependencies": {'bar': {'path': '../bar'}} 36 "dependencies": {
37 'bar': {
38 'path': '../bar'
39 }
40 }
42 }), 41 }),
43 d.dir("web", [ 42 d.dir("web", [d.file("main.dart", 'const TOKEN = "main.dart";')])]). create();
44 d.file("main.dart", 'const TOKEN = "main.dart";')
45 ])
46 ]).create();
47 43
48 createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']); 44 createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']);
49 45
50 pubServe(); 46 pubServe();
51 requestShouldSucceed("main.dart", 47 requestShouldSucceed(
48 "main.dart",
52 'const TOKEN = "(main.dart, (bar, foo))";'); 49 'const TOKEN = "(main.dart, (bar, foo))";');
53 endPubServe(); 50 endPubServe();
54 }); 51 });
55 }); 52 });
56 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698