| 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 17 matching lines...) Expand all Loading... |
| 28 "foo": {"path": "../foo"} | 28 "foo": {"path": "../foo"} |
| 29 }), | 29 }), |
| 30 d.dir("example", [ | 30 d.dir("example", [ |
| 31 d.file("main.dart", 'myapp() => print("not entrypoint");'), | 31 d.file("main.dart", 'myapp() => print("not entrypoint");'), |
| 32 d.dir("sub", [ | 32 d.dir("sub", [ |
| 33 d.file("main.dart", 'myapp() => print("not entrypoint");') | 33 d.file("main.dart", 'myapp() => print("not entrypoint");') |
| 34 ]) | 34 ]) |
| 35 ]) | 35 ]) |
| 36 ]).create(); | 36 ]).create(); |
| 37 | 37 |
| 38 pubGet(); |
| 38 schedulePub(args: ["build", "--mode", "debug", "example"], | 39 schedulePub(args: ["build", "--mode", "debug", "example"], |
| 39 output: new RegExp(r'Built \d+ files to "build".')); | 40 output: new RegExp(r'Built \d+ files to "build".')); |
| 40 | 41 |
| 41 d.dir(appPath, [ | 42 d.dir(appPath, [ |
| 42 d.dir('build', [ | 43 d.dir('build', [ |
| 43 d.dir('example', [ | 44 d.dir('example', [ |
| 44 d.file("main.dart", 'myapp() => print("not entrypoint");'), | 45 d.file("main.dart", 'myapp() => print("not entrypoint");'), |
| 45 d.dir('packages', [ | 46 d.dir('packages', [ |
| 46 d.dir('foo', [ | 47 d.dir('foo', [ |
| 47 d.file('foo.dart', 'foo() => print("hello");'), | 48 d.file('foo.dart', 'foo() => print("hello");'), |
| 48 d.dir("sub", [ | 49 d.dir("sub", [ |
| 49 d.file('bar.dart', 'bar() => print("hello");'), | 50 d.file('bar.dart', 'bar() => print("hello");'), |
| 50 ]) | 51 ]) |
| 51 ]) | 52 ]) |
| 52 ]), | 53 ]), |
| 53 d.dir("sub", [ | 54 d.dir("sub", [ |
| 54 d.file("main.dart", 'myapp() => print("not entrypoint");'), | 55 d.file("main.dart", 'myapp() => print("not entrypoint");'), |
| 55 // Does *not* copy packages into subdirectories. | 56 // Does *not* copy packages into subdirectories. |
| 56 d.nothing("packages") | 57 d.nothing("packages") |
| 57 ]) | 58 ]) |
| 58 ]) | 59 ]) |
| 59 ]) | 60 ]) |
| 60 ]).validate(); | 61 ]).validate(); |
| 61 }); | 62 }); |
| 62 } | 63 } |
| OLD | NEW |