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

Unified Diff: sdk/lib/_internal/pub_generated/test/build/handles_long_paths_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/build/handles_long_paths_test.dart
diff --git a/sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart b/sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
similarity index 66%
copy from sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart
copy to sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
index 3b8b17b60e42b010a5811eccead0111cddef2dc4..094938e9d4a41fc3de406b26f7a087d8826976ef 100644
--- a/sdk/lib/_internal/pub/test/build/handles_long_paths_test.dart
+++ b/sdk/lib/_internal/pub_generated/test/build/handles_long_paths_test.dart
@@ -31,43 +31,38 @@ main() {
// timeout to cope with that.
currentSchedule.timeout *= 3;
- d.dir("some_long_dependency_name", [
- d.libPubspec("foo", "0.0.1"),
- d.dir("lib", [
- d.file("foo.txt", "foo")
- ])
- ]).create();
+ d.dir(
+ "some_long_dependency_name",
+ [
+ d.libPubspec("foo", "0.0.1"),
+ d.dir("lib", [d.file("foo.txt", "foo")])]).create();
// Build a 2,800 character (non-canonicalized) path.
var longPath = "";
- for (var i = 0; i < 100; i++)
- {
+ for (var i = 0; i < 100; i++) {
longPath = path.join(longPath, "..", "some_long_dependency_name");
}
- d.dir(appPath, [
- d.appPubspec({
- "foo": {"path": longPath}
- }),
- d.dir("web", [
- d.file("index.html", "html"),
- ])
- ]).create();
+ d.dir(appPath, [d.appPubspec({
+ "foo": {
+ "path": longPath
+ }
+ }), d.dir("web", [d.file("index.html", "html"),])]).create();
- schedulePub(args: ["build"],
+ schedulePub(
+ args: ["build"],
output: new RegExp(r'Built 2 files to "build".'));
- d.dir(appPath, [
- d.dir('build', [
- d.dir('web', [
- d.file("index.html", "html"),
- d.dir('packages', [
- d.dir('foo', [
- d.file('foo.txt', 'foo')
- ])
- ])
- ])
- ])
- ]).validate();
+ d.dir(
+ appPath,
+ [
+ d.dir(
+ 'build',
+ [
+ d.dir(
+ 'web',
+ [
+ d.file("index.html", "html"),
+ d.dir('packages', [d.dir('foo', [d.file('foo.txt', 'foo')])])])])]).validate();
});
}

Powered by Google App Engine
This is Rietveld 408576698