OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
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 | 9 |
10 const TRANSFORMER = """ | 10 const TRANSFORMER = """ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 ]).create(); | 47 ]).create(); |
48 | 48 |
49 pubGet(); | 49 pubGet(); |
50 var pub = pubRun(args: ["bin/script"]); | 50 var pub = pubRun(args: ["bin/script"]); |
51 | 51 |
52 // TODO(nweiz): Enable this when sdk#23990 is fixed. | 52 // TODO(nweiz): Enable this when sdk#23990 is fixed. |
53 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt"))); | 53 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt"))); |
54 | 54 |
55 pub.stdout.expect("hello!"); | 55 pub.stdout.expect("hello!"); |
56 pub.shouldExit(0); | 56 pub.shouldExit(0); |
57 }); | 57 }, |
58 skip: "Issue https://github.com/dart-lang/pub/issues/1446"); | |
nweiz
2016/09/27 22:15:04
For future reference: If you want to skip all the
| |
58 | 59 |
59 integration("the spawned application can load a dependency's resource", () { | 60 integration("the spawned application can load a dependency's resource", () { |
60 d.dir("foo", [ | 61 d.dir("foo", [ |
61 d.libPubspec("foo", "1.0.0"), | 62 d.libPubspec("foo", "1.0.0"), |
62 d.dir("lib", [ | 63 d.dir("lib", [ |
63 d.file("resource.txt", "hello!") | 64 d.file("resource.txt", "hello!") |
64 ]) | 65 ]) |
65 ]).create(); | 66 ]).create(); |
66 | 67 |
67 d.dir(appPath, [ | 68 d.dir(appPath, [ |
(...skipping 15 matching lines...) Expand all Loading... | |
83 ]).create(); | 84 ]).create(); |
84 | 85 |
85 pubGet(); | 86 pubGet(); |
86 var pub = pubRun(args: ["bin/script"]); | 87 var pub = pubRun(args: ["bin/script"]); |
87 | 88 |
88 // TODO(nweiz): Enable this when sdk#23990 is fixed. | 89 // TODO(nweiz): Enable this when sdk#23990 is fixed. |
89 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); | 90 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); |
90 | 91 |
91 pub.stdout.expect("hello!"); | 92 pub.stdout.expect("hello!"); |
92 pub.shouldExit(0); | 93 pub.shouldExit(0); |
93 }); | 94 }, |
95 skip: "Issue https://github.com/dart-lang/pub/issues/1446"); | |
94 | 96 |
95 integration('the spawned application can load a transformed resource', () { | 97 integration('the spawned application can load a transformed resource', () { |
96 serveBarback(); | 98 serveBarback(); |
97 | 99 |
98 d.dir(appPath, [ | 100 d.dir(appPath, [ |
99 d.pubspec({ | 101 d.pubspec({ |
100 "name": "myapp", | 102 "name": "myapp", |
101 "transformers": ["myapp/src/transformer"], | 103 "transformers": ["myapp/src/transformer"], |
102 "dependencies": {"barback": "any"} | 104 "dependencies": {"barback": "any"} |
103 }), | 105 }), |
(...skipping 18 matching lines...) Expand all Loading... | |
122 ]).create(); | 124 ]).create(); |
123 | 125 |
124 pubGet(); | 126 pubGet(); |
125 var pub = pubRun(args: ["bin/script"]); | 127 var pub = pubRun(args: ["bin/script"]); |
126 | 128 |
127 // TODO(nweiz): Enable this when sdk#23990 is fixed. | 129 // TODO(nweiz): Enable this when sdk#23990 is fixed. |
128 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt"))); | 130 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt"))); |
129 | 131 |
130 pub.stdout.expect("hello!"); | 132 pub.stdout.expect("hello!"); |
131 pub.shouldExit(0); | 133 pub.shouldExit(0); |
132 }); | 134 }, |
135 skip: "Issue https://github.com/dart-lang/pub/issues/1446"); | |
133 | 136 |
134 integration('a snapshotted application can load a resource', () { | 137 integration('a snapshotted application can load a resource', () { |
135 servePackages((builder) { | 138 servePackages((builder) { |
136 builder.serve("foo", "1.0.0", contents: [ | 139 builder.serve("foo", "1.0.0", contents: [ |
137 d.dir("lib", [ | 140 d.dir("lib", [ |
138 d.file("resource.txt", "hello!") | 141 d.file("resource.txt", "hello!") |
139 ]), | 142 ]), |
140 d.dir("bin", [ | 143 d.dir("bin", [ |
141 d.file("script.dart", """ | 144 d.file("script.dart", """ |
142 main() async { | 145 main() async { |
(...skipping 17 matching lines...) Expand all Loading... | |
160 | 163 |
161 pubGet(output: contains("Precompiled foo:script.")); | 164 pubGet(output: contains("Precompiled foo:script.")); |
162 | 165 |
163 var pub = pubRun(args: ["foo:script"]); | 166 var pub = pubRun(args: ["foo:script"]); |
164 | 167 |
165 // TODO(nweiz): Enable this when sdk#23990 is fixed. | 168 // TODO(nweiz): Enable this when sdk#23990 is fixed. |
166 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); | 169 // pub.stdout.expect(p.toUri(p.join(sandboxDir, "foo/lib/resource.txt"))); |
167 | 170 |
168 pub.stdout.expect("hello!"); | 171 pub.stdout.expect("hello!"); |
169 pub.shouldExit(0); | 172 pub.shouldExit(0); |
170 }); | 173 }, |
174 skip: "Issue https://github.com/dart-lang/pub/issues/1446"); | |
171 } | 175 } |
OLD | NEW |