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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/transformer/runs_one_third_party_transformer_on_another_test.dart

Issue 937243002: Revert "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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library pub_tests;
6
7 import '../descriptor.dart' as d;
8 import '../test_pub.dart';
9 import '../serve/utils.dart';
10
11 main() {
12 initConfig();
13 withBarbackVersions("any", () {
14 integration("runs one third-party transformer on another", () {
15 d.dir("foo", [d.pubspec({
16 "name": "foo",
17 "version": "1.0.0"
18 }),
19 d.dir("lib", [d.file("transformer.dart", dartTransformer('foo')),])] ).create();
20
21 d.dir("bar", [d.pubspec({
22 "name": "bar",
23 "version": "1.0.0",
24 "transformers": ["foo/transformer"],
25 "dependencies": {
26 "foo": {
27 "path": "../foo"
28 }
29 }
30 }),
31 d.dir("lib", [d.file("transformer.dart", dartTransformer('bar')),])] ).create();
32
33 d.dir(appPath, [d.pubspec({
34 "name": "myapp",
35 "transformers": ["bar/transformer"],
36 "dependencies": {
37 'bar': {
38 'path': '../bar'
39 }
40 }
41 }),
42 d.dir("web", [d.file("main.dart", 'const TOKEN = "main.dart";')])]). create();
43
44 createLockFile('myapp', sandbox: ['foo', 'bar'], pkg: ['barback']);
45
46 pubServe();
47 requestShouldSucceed(
48 "main.dart",
49 'const TOKEN = "(main.dart, (bar, foo))";');
50 endPubServe();
51 });
52 });
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698