Chromium Code Reviews

Unified Diff: sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart

Issue 291843011: Run pub tests against older versions of barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart b/sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart
index 1d8954c79fda2c311470a97d978bc328ccfa047b..e862b7568b01c94d823812a64cd9e043cceef14f 100644
--- a/sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart
+++ b/sdk/lib/_internal/pub/test/transformer/asset_not_found_exceptions_are_detectable_test.dart
@@ -39,31 +39,33 @@ class GetInputTransformer extends Transformer {
main() {
initConfig();
- integration("AssetNotFoundExceptions are detectable", () {
- d.dir(appPath, [
- d.pubspec({
- "name": "myapp",
- "transformers": ["myapp/src/transformer"]
- }),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", transformer)
- ])]),
- d.dir("web", [
- d.file("foo.txt", "foo")
- ])
- ]).create();
+ withBarbackVersions("any", () {
+ integration("AssetNotFoundExceptions are detectable", () {
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "transformers": ["myapp/src/transformer"]
+ }),
+ d.dir("lib", [d.dir("src", [
+ d.file("transformer.dart", transformer)
+ ])]),
+ d.dir("web", [
+ d.file("foo.txt", "foo")
+ ])
+ ]).create();
- createLockFile('myapp', pkg: ['barback']);
+ createLockFile('myapp', pkg: ['barback']);
- var server = pubServe();
- requestShouldSucceed("foo.txt", JSON.encode({
- "package": "myapp",
- "path": "nonexistent"
- }));
- endPubServe();
+ var server = pubServe();
+ requestShouldSucceed("foo.txt", JSON.encode({
+ "package": "myapp",
+ "path": "nonexistent"
+ }));
+ endPubServe();
- // Since the AssetNotFoundException was caught and handled, the server
- // shouldn't print any error information for it.
- server.stderr.expect(isDone);
+ // Since the AssetNotFoundException was caught and handled, the server
+ // shouldn't print any error information for it.
+ server.stderr.expect(isDone);
+ });
});
}
« no previous file with comments | « sdk/lib/_internal/pub/test/test_pub.dart ('k') | sdk/lib/_internal/pub/test/transformer/can_log_messages_test.dart » ('j') | no next file with comments »

Powered by Google App Engine