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

Unified Diff: sdk/lib/_internal/pub_generated/test/dependency_computer/import_dependencies_test.dart

Issue 896623005: Use native async/await support in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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/dependency_computer/import_dependencies_test.dart
diff --git a/sdk/lib/_internal/pub_generated/test/dependency_computer/import_dependencies_test.dart b/sdk/lib/_internal/pub_generated/test/dependency_computer/import_dependencies_test.dart
deleted file mode 100644
index 50ea1c9467c2a2eb187144b19bc3f51e19da75b6..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/pub_generated/test/dependency_computer/import_dependencies_test.dart
+++ /dev/null
@@ -1,249 +0,0 @@
-// Copyright (c) 2014, 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.
-
-library pub_tests;
-
-import '../descriptor.dart' as d;
-import '../test_pub.dart';
-import 'utils.dart';
-
-void main() {
- initConfig();
-
- integration(
- "reports a dependency if a transformed local file is imported",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": [{
- "foo": {
- "\$include": "lib/lib.dart"
- }
- }, "myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("lib.dart", ""),
- d.file("transformer.dart", transformer(["lib.dart"]))])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0"
- }), d.dir("lib", [d.file("foo.dart", transformer())])]).create();
-
- expectDependencies({
- 'myapp': ['foo'],
- 'foo': []
- });
- });
-
- integration(
- "reports a dependency if a transformed foreign file is imported",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": ["myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("transformer.dart", transformer(["package:foo/foo.dart"]))])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0",
- "transformers": [{
- "foo": {
- "\$include": "lib/foo.dart"
- }
- }]
- }),
- d.dir(
- "lib",
- [d.file("foo.dart", ""), d.file("transformer.dart", transformer())])]).create();
-
- expectDependencies({
- 'myapp': ['foo'],
- 'foo': []
- });
- });
-
- integration(
- "reports a dependency if a transformed external package file is "
- "imported from an export",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": ["myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("transformer.dart", transformer(["local.dart"])),
- d.file("local.dart", "export 'package:foo/foo.dart';")])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0",
- "transformers": [{
- "foo": {
- "\$include": "lib/foo.dart"
- }
- }]
- }),
- d.dir(
- "lib",
- [d.file("foo.dart", ""), d.file("transformer.dart", transformer())])]).create();
-
- expectDependencies({
- 'myapp': ['foo'],
- 'foo': []
- });
- });
-
- integration(
- "reports a dependency if a transformed foreign file is "
- "transitively imported",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": ["myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("transformer.dart", transformer(["local.dart"])),
- d.file("local.dart", "import 'package:foo/foreign.dart';")])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0",
- "transformers": [{
- "foo": {
- "\$include": "lib/foo.dart"
- }
- }]
- }),
- d.dir(
- "lib",
- [
- d.file("foo.dart", ""),
- d.file("transformer.dart", transformer()),
- d.file("foreign.dart", "import 'foo.dart';")])]).create();
-
- expectDependencies({
- 'myapp': ['foo'],
- 'foo': []
- });
- });
-
- integration(
- "reports a dependency if a transformed foreign file is "
- "transitively imported across packages",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": ["myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("transformer.dart", transformer(["package:foo/foo.dart"])),])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0",
- "dependencies": {
- "bar": {
- "path": "../bar"
- }
- }
- }),
- d.dir("lib", [d.file("foo.dart", "import 'package:bar/bar.dart';")])]).create();
-
- d.dir("bar", [d.pubspec({
- "name": "bar",
- "version": "1.0.0",
- "transformers": [{
- "bar": {
- "\$include": "lib/bar.dart"
- }
- }]
- }),
- d.dir(
- "lib",
- [d.file("bar.dart", ""), d.file("transformer.dart", transformer())])]).create();
-
- expectDependencies({
- 'myapp': ['bar'],
- 'bar': []
- });
- });
-
- integration(
- "reports a dependency if an imported file is transformed by a "
- "different package",
- () {
- d.dir(appPath, [d.pubspec({
- "name": "myapp",
- "dependencies": {
- "foo": {
- "path": "../foo"
- }
- },
- "transformers": [{
- "foo": {
- '\$include': 'lib/local.dart'
- }
- }, "myapp"]
- }),
- d.dir(
- "lib",
- [
- d.file("myapp.dart", ""),
- d.file("transformer.dart", transformer(["local.dart"])),
- d.file("local.dart", "")])]).create();
-
- d.dir("foo", [d.pubspec({
- "name": "foo",
- "version": "1.0.0"
- }), d.dir("lib", [d.file("transformer.dart", transformer())])]).create();
-
- expectDependencies({
- 'myapp': ['foo'],
- 'foo': []
- });
- });
-}

Powered by Google App Engine
This is Rietveld 408576698