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

Unified Diff: sdk/lib/_internal/pub_generated/test/validator/executable_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/validator/executable_test.dart
diff --git a/sdk/lib/_internal/pub/test/validator/executable_test.dart b/sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
similarity index 78%
copy from sdk/lib/_internal/pub/test/validator/executable_test.dart
copy to sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
index 6d1fb81615d425577c7d429fbd23bcffbeebb5e5..995fef909077ceb248e29d9ca14075cfbc037b4d 100644
--- a/sdk/lib/_internal/pub/test/validator/executable_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/validator/executable_test.dart
@@ -12,7 +12,7 @@ import '../test_pub.dart';
import 'utils.dart';
Validator executable(Entrypoint entrypoint) =>
- new ExecutableValidator(entrypoint);
+ new ExecutableValidator(entrypoint);
main() {
initConfig();
@@ -21,8 +21,7 @@ main() {
group('should consider a package valid if it', () {
integration('has executables that are present', () {
- d.dir(appPath, [
- d.pubspec({
+ d.dir(appPath, [d.pubspec({
"name": "test_pkg",
"version": "1.0.0",
"executables": {
@@ -30,27 +29,25 @@ main() {
"two": null
}
}),
- d.dir("bin", [
- d.file("one_script.dart", "main() => print('ok');"),
- d.file("two.dart", "main() => print('ok');")
- ])
- ]).create();
+ d.dir(
+ "bin",
+ [
+ d.file("one_script.dart", "main() => print('ok');"),
+ d.file("two.dart", "main() => print('ok');")])]).create();
expectNoValidationError(executable);
});
});
group("should consider a package invalid if it", () {
integration('is missing one or more listed executables', () {
- d.dir(appPath, [
- d.pubspec({
+ d.dir(appPath, [d.pubspec({
"name": "test_pkg",
"version": "1.0.0",
"executables": {
"nope": "not_there",
"nada": null
}
- })
- ]).create();
+ })]).create();
expectValidationWarning(executable);
});
});

Powered by Google App Engine
This is Rietveld 408576698