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 '../descriptor.dart' as d; | 7 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 8 import '../test_pub.dart'; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 29 matching lines...) Expand all Loading... |
40 d.dir("web", [ | 40 d.dir("web", [ |
41 d.file("main.dart", | 41 d.file("main.dart", |
42 """ | 42 """ |
43 import 'package:foo/foo.dart'; | 43 import 'package:foo/foo.dart'; |
44 main() => print(foo()); | 44 main() => print(foo()); |
45 """) | 45 """) |
46 ]) | 46 ]) |
47 ]).create(); | 47 ]).create(); |
48 | 48 |
49 schedulePub(args: ["build"], | 49 schedulePub(args: ["build"], |
50 output: new RegExp(r"Built 3 files!"), | 50 output: new RegExp(r"Built 3 files!")); |
51 exitCode: 0); | |
52 | 51 |
53 d.dir(appPath, [ | 52 d.dir(appPath, [ |
54 d.dir('build', [ | 53 d.dir('build', [ |
55 d.matcherFile('main.dart.js', isNot(isEmpty)), | 54 d.dir('web', [ |
56 d.matcherFile('main.dart.precompiled.js', isNot(isEmpty)), | 55 d.matcherFile('main.dart.js', isNot(isEmpty)), |
57 d.matcherFile('main.dart.js.map', isNot(isEmpty)) | 56 d.matcherFile('main.dart.precompiled.js', isNot(isEmpty)), |
| 57 d.matcherFile('main.dart.js.map', isNot(isEmpty)) |
| 58 ]) |
58 ]) | 59 ]) |
59 ]).validate(); | 60 ]).validate(); |
60 }); | 61 }); |
61 } | 62 } |
OLD | NEW |