OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.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 library pub_tests; | |
6 | |
7 import 'package:scheduled_test/scheduled_stream.dart'; | 5 import 'package:scheduled_test/scheduled_stream.dart'; |
8 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
9 | 7 |
10 import '../../descriptor.dart' as d; | 8 import '../../descriptor.dart' as d; |
11 import '../../test_pub.dart'; | 9 import '../../test_pub.dart'; |
12 import '../../serve/utils.dart'; | 10 import '../../serve/utils.dart'; |
13 | 11 |
14 main() { | 12 main() { |
15 integration("works on the dart2js transformer", () { | 13 integration("works on the dart2js transformer", () { |
16 serveBarback(); | 14 serveBarback(); |
(...skipping 27 matching lines...) Loading... |
44 requestShouldSucceed("b.dart.js", isNot(isEmpty)); | 42 requestShouldSucceed("b.dart.js", isNot(isEmpty)); |
45 server.stdout.expect(consumeThrough(emitsLines( | 43 server.stdout.expect(consumeThrough(emitsLines( |
46 "[Info from Dart2JS]:\n" | 44 "[Info from Dart2JS]:\n" |
47 "Compiling myapp|web/b.dart..."))); | 45 "Compiling myapp|web/b.dart..."))); |
48 server.stdout.expect(consumeThrough("Build completed successfully")); | 46 server.stdout.expect(consumeThrough("Build completed successfully")); |
49 | 47 |
50 requestShould404("c.dart.js"); | 48 requestShould404("c.dart.js"); |
51 endPubServe(); | 49 endPubServe(); |
52 }); | 50 }); |
53 } | 51 } |
OLD | NEW |