OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 const MAIN = """ | 10 const MAIN = """ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 d.dir(appPath, [ | 43 d.dir(appPath, [ |
44 d.appPubspec(), | 44 d.appPubspec(), |
45 d.dir('web', [ | 45 d.dir('web', [ |
46 d.file('main.dart', MAIN), | 46 d.file('main.dart', MAIN), |
47 d.file('a.dart', A), | 47 d.file('a.dart', A), |
48 d.file('b.dart', B) | 48 d.file('b.dart', B) |
49 ]) | 49 ]) |
50 ]).create(); | 50 ]).create(); |
51 | 51 |
52 schedulePub(args: ["build"], | 52 schedulePub(args: ["build"], |
53 output: new RegExp(r'Built 4 files to "build".')); | 53 output: new RegExp(r'Built 3 files to "build".')); |
54 | 54 |
55 d.dir(appPath, [ | 55 d.dir(appPath, [ |
56 d.dir('build', [ | 56 d.dir('build', [ |
57 d.dir('web', [ | 57 d.dir('web', [ |
58 d.matcherFile('main.dart.js', isNot(isEmpty)), | 58 d.matcherFile('main.dart.js', isNot(isEmpty)), |
59 d.matcherFile('main.dart.js_1.part.js', isNot(isEmpty)), | 59 d.matcherFile('main.dart.js_1.part.js', isNot(isEmpty)), |
60 d.matcherFile('main.dart.js_2.part.js', isNot(isEmpty)), | 60 d.matcherFile('main.dart.js_2.part.js', isNot(isEmpty)), |
61 ]) | 61 ]) |
62 ]) | 62 ]) |
63 ]).validate(); | 63 ]).validate(); |
64 }); | 64 }); |
65 } | 65 } |
OLD | NEW |