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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/dependency_computer/dev_transformers_test.dart

Issue 896623005: Use native async/await support in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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) 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
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 'utils.dart';
10
11 void main() {
12 initConfig();
13
14 integration(
15 "doesn't return a dependency's transformer that can't run on lib",
16 () {
17 d.dir(appPath, [d.pubspec({
18 "name": "myapp",
19 "dependencies": {
20 "foo": {
21 "path": "../foo"
22 }
23 }
24 })]).create();
25
26 d.dir("foo", [d.pubspec({
27 "name": "foo",
28 "version": "1.0.0",
29 "transformers": [{
30 "foo": {
31 "\$include": "test/foo_test.dart"
32 }
33 }]
34 }),
35 d.dir("lib", [d.file("foo.dart", transformer())]),
36 d.dir("test", [d.file("foo_test.dart", "")])]).create();
37
38 expectDependencies({});
39 });
40
41 integration(
42 "does return the root package's transformer that can't run on " "lib",
43 () {
44 d.dir(appPath, [d.pubspec({
45 "name": "myapp",
46 "transformers": [{
47 "myapp": {
48 "\$include": "test/myapp_test.dart"
49 }
50 }]
51 }),
52 d.dir("lib", [d.file("myapp.dart", transformer())]),
53 d.dir("test", [d.file("myapp_test.dart", "")])]).create();
54
55 expectDependencies({
56 "myapp": []
57 });
58 });
59
60 integration(
61 "doesn't return a dependency's transformer that can run on bin",
62 () {
63 d.dir(appPath, [d.pubspec({
64 "name": "myapp",
65 "dependencies": {
66 "foo": {
67 "path": "../foo"
68 }
69 }
70 })]).create();
71
72 d.dir("foo", [d.pubspec({
73 "name": "foo",
74 "version": "1.0.0",
75 "transformers": [{
76 "foo": {
77 "\$include": "bin/foo.dart"
78 }
79 }]
80 }),
81 d.dir("lib", [d.file("foo.dart", transformer())]),
82 d.dir("test", [d.file("foo_test.dart", "")])]).create();
83
84 expectDependencies({
85 "foo": []
86 });
87 });
88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698