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

Unified Diff: sdk/lib/_internal/pub_generated/test/upgrade/report/leading_character_shows_change_test.dart

Issue 557563002: Store the async-await compiled pub code directly in the repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/upgrade/report/leading_character_shows_change_test.dart
diff --git a/sdk/lib/_internal/pub/test/upgrade/report/leading_character_shows_change_test.dart b/sdk/lib/_internal/pub_generated/test/upgrade/report/leading_character_shows_change_test.dart
similarity index 57%
copy from sdk/lib/_internal/pub/test/upgrade/report/leading_character_shows_change_test.dart
copy to sdk/lib/_internal/pub_generated/test/upgrade/report/leading_character_shows_change_test.dart
index eef1946d326b80d02d40381ac4b7f6f4b7316ad5..14df3ffd5490305b491a7c4dd03110a9a1d18fdd 100644
--- a/sdk/lib/_internal/pub/test/upgrade/report/leading_character_shows_change_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/upgrade/report/leading_character_shows_change_test.dart
@@ -1,12 +1,6 @@
-// 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.
-
library pub_tests;
-
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
-
main() {
initConfig();
integration("the character before each package describes the change", () {
@@ -21,28 +15,25 @@ main() {
builder.serve("upgraded", "2.0.0");
builder.serve("unchanged", "1.0.0");
});
-
- d.dir("description_changed_1", [
- d.libDir("description_changed"),
- d.libPubspec("description_changed", "1.0.0")
- ]).create();
-
- d.dir("description_changed_2", [
- d.libDir("description_changed"),
- d.libPubspec("description_changed", "1.0.0")
- ]).create();
-
- d.dir("source_changed", [
- d.libDir("source_changed"),
- d.libPubspec("source_changed", "1.0.0")
- ]).create();
-
- // Create the first lockfile.
- d.dir(appPath, [
- d.pubspec({
+ d.dir(
+ "description_changed_1",
+ [
+ d.libDir("description_changed"),
+ d.libPubspec("description_changed", "1.0.0")]).create();
+ d.dir(
+ "description_changed_2",
+ [
+ d.libDir("description_changed"),
+ d.libPubspec("description_changed", "1.0.0")]).create();
+ d.dir(
+ "source_changed",
+ [d.libDir("source_changed"), d.libPubspec("source_changed", "1.0.0")]).create();
+ d.dir(appPath, [d.pubspec({
"name": "myapp",
"dependencies": {
- "description_changed": {"path": "../description_changed_1"},
+ "description_changed": {
+ "path": "../description_changed_1"
+ },
"downgraded": "2.0.0",
"removed": "any",
"source_changed": "any",
@@ -52,30 +43,26 @@ main() {
"dependency_overrides": {
"overridden": "any"
}
- })
- ]).create();
-
+ })]).create();
pubGet();
-
- // Change the pubspec.
- d.dir(appPath, [
- d.pubspec({
+ d.dir(appPath, [d.pubspec({
"name": "myapp",
"dependencies": {
"added": "any",
- "description_changed": {"path": "../description_changed_2"},
+ "description_changed": {
+ "path": "../description_changed_2"
+ },
"downgraded": "1.0.0",
- "source_changed": {"path": "../source_changed"},
+ "source_changed": {
+ "path": "../source_changed"
+ },
"unchanged": "any",
"upgraded": "2.0.0"
},
"dependency_overrides": {
"overridden": "any"
}
- })
- ]).create();
-
- // Upgrade everything.
+ })]).create();
pubUpgrade(output: new RegExp(r"""
Resolving dependencies\.\.\..*
\+ added .*

Powered by Google App Engine
This is Rietveld 408576698