| 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 20 matching lines...) Expand all Loading... |
| 31 d.file("index.html", "html"), | 31 d.file("index.html", "html"), |
| 32 ]), | 32 ]), |
| 33 d.dir("web", [ | 33 d.dir("web", [ |
| 34 d.file("index.html", "html"), | 34 d.file("index.html", "html"), |
| 35 d.dir("sub", [ | 35 d.dir("sub", [ |
| 36 d.file("index.html", "html") | 36 d.file("index.html", "html") |
| 37 ]) | 37 ]) |
| 38 ]) | 38 ]) |
| 39 ]).create(); | 39 ]).create(); |
| 40 | 40 |
| 41 pubGet(); |
| 41 schedulePub(args: ["build", "--all"], | 42 schedulePub(args: ["build", "--all"], |
| 42 output: new RegExp(r'Built 7 files to "build".')); | 43 output: new RegExp(r'Built 7 files to "build".')); |
| 43 | 44 |
| 44 d.dir(appPath, [ | 45 d.dir(appPath, [ |
| 45 d.dir('build', [ | 46 d.dir('build', [ |
| 46 d.dir('example', [ | 47 d.dir('example', [ |
| 47 d.file("index.html", "html"), | 48 d.file("index.html", "html"), |
| 48 d.dir('packages', [ | 49 d.dir('packages', [ |
| 49 d.dir('foo', [ | 50 d.dir('foo', [ |
| 50 d.file('foo.txt', 'foo'), | 51 d.file('foo.txt', 'foo'), |
| (...skipping 16 matching lines...) Expand all Loading... |
| 67 d.dir("sub", [ | 68 d.dir("sub", [ |
| 68 d.file("index.html", "html"), | 69 d.file("index.html", "html"), |
| 69 // "packages" should *only* be created in the top-level directory. | 70 // "packages" should *only* be created in the top-level directory. |
| 70 d.nothing("packages") | 71 d.nothing("packages") |
| 71 ]) | 72 ]) |
| 72 ]) | 73 ]) |
| 73 ]) | 74 ]) |
| 74 ]).validate(); | 75 ]).validate(); |
| 75 }); | 76 }); |
| 76 } | 77 } |
| OLD | NEW |