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

Unified Diff: test/run/resource_test.dart

Issue 1530353002: Drop support for older Barback versions. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/run/mode_test.dart ('k') | test/run/runs_a_generated_script_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/resource_test.dart
diff --git a/test/run/resource_test.dart b/test/run/resource_test.dart
index 95339931f09ec3fd72e3d80f1dad8eccac3ce954..85ba4c0a1be0b2f32af17ebaf3c9758c54d0f158 100644
--- a/test/run/resource_test.dart
+++ b/test/run/resource_test.dart
@@ -95,21 +95,20 @@ main() async {
pub.shouldExit(0);
});
- withBarbackVersions("any", () {
- integration('the spawned application can load a transformed resource', () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [
- d.file("resource.in", "hello!"),
- d.dir("src", [
- d.file("transformer.dart", TRANSFORMER)
- ])
- ]),
- d.dir("bin", [
- d.file("script.dart", """
+ integration('the spawned application can load a transformed resource', () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"]
+ }),
+ d.dir("lib", [
+ d.file("resource.in", "hello!"),
+ d.dir("src", [
+ d.file("transformer.dart", TRANSFORMER)
+ ])
+ ]),
+ d.dir("bin", [
+ d.file("script.dart", """
main() async {
var resource = new Resource("package:myapp/resource.txt");
@@ -119,19 +118,18 @@ main() async {
print(await resource.readAsString());
}
""")
- ])
- ]).create();
+ ])
+ ]).create();
- createLockFile('myapp', pkg: ['barback']);
+ createLockFile('myapp', pkg: ['barback']);
- var pub = pubRun(args: ["bin/script"]);
+ var pub = pubRun(args: ["bin/script"]);
- // TODO(nweiz): Enable this when sdk#23990 is fixed.
- // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt")));
+ // TODO(nweiz): Enable this when sdk#23990 is fixed.
+ // pub.stdout.expect(p.toUri(p.join(sandboxDir, "myapp/lib/resource.txt")));
- pub.stdout.expect("hello!");
- pub.shouldExit(0);
- });
+ pub.stdout.expect("hello!");
+ pub.shouldExit(0);
});
integration('a snapshotted application can load a resource', () {
« no previous file with comments | « test/run/mode_test.dart ('k') | test/run/runs_a_generated_script_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698