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

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

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 library pub_tests;
2 import '../descriptor.dart' as d;
3 import '../test_pub.dart';
4 import 'utils.dart';
5 void main() {
6 initConfig();
7 integration(
8 "doesn't return a dependency's transformer that can't run on lib",
9 () {
10 d.dir(appPath, [d.pubspec({
11 "name": "myapp",
12 "dependencies": {
13 "foo": {
14 "path": "../foo"
15 }
16 }
17 })]).create();
18 d.dir("foo", [d.pubspec({
19 "name": "foo",
20 "version": "1.0.0",
21 "transformers": [{
22 "foo": {
23 "\$include": "test/foo_test.dart"
24 }
25 }]
26 }),
27 d.dir("lib", [d.file("foo.dart", transformer())]),
28 d.dir("test", [d.file("foo_test.dart", "")])]).create();
29 expectDependencies({});
30 });
31 integration(
32 "does return the root package's transformer that can't run on " "lib",
33 () {
34 d.dir(appPath, [d.pubspec({
35 "name": "myapp",
36 "transformers": [{
37 "myapp": {
38 "\$include": "test/myapp_test.dart"
39 }
40 }]
41 }),
42 d.dir("lib", [d.file("myapp.dart", transformer())]),
43 d.dir("test", [d.file("myapp_test.dart", "")])]).create();
44 expectDependencies({
45 "myapp": []
46 });
47 });
48 integration(
49 "doesn't return a dependency's transformer that can run on bin",
50 () {
51 d.dir(appPath, [d.pubspec({
52 "name": "myapp",
53 "dependencies": {
54 "foo": {
55 "path": "../foo"
56 }
57 }
58 })]).create();
59 d.dir("foo", [d.pubspec({
60 "name": "foo",
61 "version": "1.0.0",
62 "transformers": [{
63 "foo": {
64 "\$include": "bin/foo.dart"
65 }
66 }]
67 }),
68 d.dir("lib", [d.file("foo.dart", transformer())]),
69 d.dir("test", [d.file("foo_test.dart", "")])]).create();
70 expectDependencies({
71 "foo": []
72 });
73 });
74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698