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

Unified Diff: sdk/lib/_internal/pub_generated/test/transformer/fails_to_load_an_unconfigurable_transformer_when_config_is_passed_test.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub_generated/test/transformer/fails_to_load_an_unconfigurable_transformer_when_config_is_passed_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart b/sdk/lib/_internal/pub_generated/test/transformer/fails_to_load_an_unconfigurable_transformer_when_config_is_passed_test.dart
similarity index 54%
copy from sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
copy to sdk/lib/_internal/pub_generated/test/transformer/fails_to_load_an_unconfigurable_transformer_when_config_is_passed_test.dart
index 73b1e06c47fc4a3925dd820fa47da3678656c459..7c20db7fd9bb2a887bc2a8f442b2f102eed96950 100644
--- a/sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/transformer/fails_to_load_an_unconfigurable_transformer_when_config_is_passed_test.dart
@@ -13,25 +13,27 @@ import '../serve/utils.dart';
main() {
initConfig();
- // An import error will cause the isolate API to fail synchronously while
- // loading the transformer.
withBarbackVersions("any", () {
- integration("fails to load a transform with an import error", () {
- d.dir(appPath, [
- d.pubspec({
+ integration(
+ "fails to load an unconfigurable transformer when config is " "passed",
+ () {
+ d.dir(appPath, [d.pubspec({
"name": "myapp",
- "transformers": ["myapp/src/transformer"]
+ "transformers": [{
+ "myapp/src/transformer": {
+ 'foo': 'bar'
+ }
+ }]
}),
- d.dir("lib", [d.dir("src", [
- d.file("transformer.dart", "import 'does/not/exist.dart';")
- ])])
- ]).create();
+ d.dir(
+ "lib",
+ [d.dir("src", [d.file("transformer.dart", REWRITE_TRANSFORMER)])])]).create();
createLockFile('myapp', pkg: ['barback']);
+
var pub = startPubServe();
- pub.stderr.expect("Unhandled exception:");
pub.stderr.expect(
- startsWith("Uncaught Error: Load Error: Failure getting "));
+ startsWith('No transformers that accept configuration ' 'were defined in '));
pub.shouldExit(1);
});
});

Powered by Google App Engine
This is Rietveld 408576698