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

Side by Side Diff: sdk/lib/_internal/pub_generated/test/build/handles_long_paths_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 import 'package:scheduled_test/scheduled_test.dart';
2 import 'package:path/path.dart' as path;
3 import '../descriptor.dart' as d;
4 import '../test_pub.dart';
5 main() {
6 initConfig();
7 integration("handles long relative paths", () {
8 currentSchedule.timeout *= 3;
9 d.dir(
10 "some_long_dependency_name",
11 [
12 d.libPubspec("foo", "0.0.1"),
13 d.dir("lib", [d.file("foo.txt", "foo")])]).create();
14 var longPath = "";
15 for (var i = 0; i < 100; i++) {
16 longPath = path.join(longPath, "..", "some_long_dependency_name");
17 }
18 d.dir(appPath, [d.appPubspec({
19 "foo": {
20 "path": longPath
21 }
22 }), d.dir("web", [d.file("index.html", "html")])]).create();
23 schedulePub(
24 args: ["build"],
25 output: new RegExp(r'Built 2 files to "build".'));
26 d.dir(
27 appPath,
28 [
29 d.dir(
30 'build',
31 [
32 d.dir(
33 'web',
34 [
35 d.file("index.html", "html"),
36 d.dir('packages', [d.dir('foo', [d.file('foo.txt', ' foo')])])])])]).validate();
37 });
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698