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 // Dart2js can take a long time to compile dart code, so we increase the timeout | 5 // Dart2js can take a long time to compile dart code, so we increase the timeout |
6 // to cope with that. | 6 // to cope with that. |
7 @Timeout.factor(3) | 7 @Timeout.factor(3) |
8 | 8 |
9 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 d.dir(appPath, [ | 46 d.dir(appPath, [ |
47 d.appPubspec({ | 47 d.appPubspec({ |
48 "foo": {"path": longPath} | 48 "foo": {"path": longPath} |
49 }), | 49 }), |
50 d.dir("web", [ | 50 d.dir("web", [ |
51 d.file("index.html", "html"), | 51 d.file("index.html", "html"), |
52 ]) | 52 ]) |
53 ]).create(); | 53 ]).create(); |
54 | 54 |
| 55 pubGet(); |
55 schedulePub(args: ["build"], | 56 schedulePub(args: ["build"], |
56 output: new RegExp(r'Built 2 files to "build".')); | 57 output: new RegExp(r'Built 2 files to "build".')); |
57 | 58 |
58 d.dir(appPath, [ | 59 d.dir(appPath, [ |
59 d.dir('build', [ | 60 d.dir('build', [ |
60 d.dir('web', [ | 61 d.dir('web', [ |
61 d.file("index.html", "html"), | 62 d.file("index.html", "html"), |
62 d.dir('packages', [ | 63 d.dir('packages', [ |
63 d.dir('foo', [ | 64 d.dir('foo', [ |
64 d.file('foo.txt', 'foo') | 65 d.file('foo.txt', 'foo') |
65 ]) | 66 ]) |
66 ]) | 67 ]) |
67 ]) | 68 ]) |
68 ]) | 69 ]) |
69 ]).validate(); | 70 ]).validate(); |
70 }); | 71 }); |
71 } | 72 } |
OLD | NEW |