OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'package:scheduled_test/scheduled_test.dart'; | 5 import 'package:scheduled_test/scheduled_test.dart'; |
6 | 6 |
7 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
8 | 8 |
9 import '../descriptor.dart' as d; | 9 import '../descriptor.dart' as d; |
10 import '../test_pub.dart'; | 10 import '../test_pub.dart'; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 d.dir(appPath, [ | 48 d.dir(appPath, [ |
49 d.appPubspec({ | 49 d.appPubspec({ |
50 "foo": {"path": longPath} | 50 "foo": {"path": longPath} |
51 }), | 51 }), |
52 d.dir("web", [ | 52 d.dir("web", [ |
53 d.file("index.html", "html"), | 53 d.file("index.html", "html"), |
54 ]) | 54 ]) |
55 ]).create(); | 55 ]).create(); |
56 | 56 |
57 schedulePub(args: ["build"], | 57 schedulePub(args: ["build"], |
58 output: new RegExp(r"Built 2 files!"), | 58 output: new RegExp(r"Built 2 files!")); |
59 exitCode: 0); | |
60 | 59 |
61 d.dir(appPath, [ | 60 d.dir(appPath, [ |
62 d.dir('build', [ | 61 d.dir('build', [ |
63 d.file("index.html", "html"), | 62 d.dir('web', [ |
64 d.dir('assets', [ | 63 d.file("index.html", "html"), |
65 d.dir('foo', [ | 64 d.dir('assets', [ |
66 d.file('foo.txt', 'foo') | 65 d.dir('foo', [ |
| 66 d.file('foo.txt', 'foo') |
| 67 ]) |
67 ]) | 68 ]) |
68 ]) | 69 ]) |
69 ]) | 70 ]) |
70 ]).validate(); | 71 ]).validate(); |
71 }); | 72 }); |
72 } | 73 } |
OLD | NEW |