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

Unified Diff: sdk/lib/_internal/pub_generated/test/deps_test.dart

Issue 937243002: Revert "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/deps_test.dart
diff --git a/sdk/lib/_internal/pub_generated/test/deps_test.dart b/sdk/lib/_internal/pub_generated/test/deps_test.dart
deleted file mode 100644
index 20403c2c90e8cc3ab7212b55780c58834b3fab86..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/pub_generated/test/deps_test.dart
+++ /dev/null
@@ -1,140 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import 'package:scheduled_test/scheduled_test.dart';
-
-import 'descriptor.dart' as d;
-import 'test_pub.dart';
-
-main() {
- initConfig();
-
- setUp(() {
- servePackages((builder) {
- builder.serve("normal", "1.2.3", deps: {
- "transitive": "any",
- "circular_a": "any"
- });
- builder.serve("transitive", "1.2.3", deps: {
- "shared": "any"
- });
- builder.serve("shared", "1.2.3", deps: {
- "other": "any"
- });
- builder.serve("unittest", "1.2.3", deps: {
- "shared": "any"
- });
- builder.serve("other", "1.0.0");
- builder.serve("overridden", "1.0.0");
- builder.serve("overridden", "2.0.0");
- builder.serve("override_only", "1.2.3");
- builder.serve("circular_a", "1.2.3", deps: {
- "circular_b": "any"
- });
- builder.serve("circular_b", "1.2.3", deps: {
- "circular_a": "any"
- });
- });
-
- d.dir(
- "from_path",
- [d.libDir("from_path"), d.libPubspec("from_path", "1.2.3")]).create();
-
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "normal": "any",
- "overridden": "1.0.0",
- "from_path": {
- "path": "../from_path"
- }
- },
- "dev_dependencies": {
- "unittest": "any"
- },
- "dependency_overrides": {
- "overridden": "2.0.0",
- "override_only": "any"
- }
- })]).create();
- });
-
- integration("lists dependencies in compact form", () {
- pubGet();
- schedulePub(args: ['deps', '-s', 'compact'], output: '''
- myapp 0.0.0
-
- dependencies:
- - from_path 1.2.3
- - normal 1.2.3 [transitive circular_a]
- - overridden 2.0.0
-
- dev dependencies:
- - unittest 1.2.3 [shared]
-
- dependency overrides:
- - overridden 2.0.0
- - override_only 1.2.3
-
- transitive dependencies:
- - circular_a 1.2.3 [circular_b]
- - circular_b 1.2.3 [circular_a]
- - other 1.0.0
- - shared 1.2.3 [other]
- - transitive 1.2.3 [shared]
- ''');
- });
-
- integration("lists dependencies in list form", () {
- pubGet();
- schedulePub(args: ['deps', '--style', 'list'], output: '''
- myapp 0.0.0
-
- dependencies:
- - from_path 1.2.3
- - normal 1.2.3
- - transitive any
- - circular_a any
- - overridden 2.0.0
-
- dev dependencies:
- - unittest 1.2.3
- - shared any
-
- dependency overrides:
- - overridden 2.0.0
- - override_only 1.2.3
-
- transitive dependencies:
- - circular_a 1.2.3
- - circular_b any
- - circular_b 1.2.3
- - circular_a any
- - other 1.0.0
- - shared 1.2.3
- - other any
- - transitive 1.2.3
- - shared any
- ''');
- });
-
- integration("lists dependencies in tree form", () {
- pubGet();
- schedulePub(args: ['deps'], output: '''
- myapp 0.0.0
- |-- from_path 1.2.3
- |-- normal 1.2.3
- | |-- circular_a 1.2.3
- | | '-- circular_b 1.2.3
- | | '-- circular_a...
- | '-- transitive 1.2.3
- | '-- shared...
- |-- overridden 2.0.0
- |-- override_only 1.2.3
- '-- unittest 1.2.3
- '-- shared 1.2.3
- '-- other 1.0.0
- ''');
- });
-}

Powered by Google App Engine
This is Rietveld 408576698