| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file | 1 // Copyright (c) 2013, 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; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | |
| 8 | |
| 9 import '../../descriptor.dart' as d; | 7 import '../../descriptor.dart' as d; |
| 10 import '../../test_pub.dart'; | 8 import '../../test_pub.dart'; |
| 11 import '../../serve/utils.dart'; | 9 import '../../serve/utils.dart'; |
| 12 | 10 |
| 13 /// The code for a transformer that renames ".js" files to ".out". | 11 /// The code for a transformer that renames ".js" files to ".out". |
| 14 const JS_REWRITE_TRANSFORMER = """ | 12 const JS_REWRITE_TRANSFORMER = """ |
| 15 import 'dart:async'; | 13 import 'dart:async'; |
| 16 | 14 |
| 17 import 'package:barback/barback.dart'; | 15 import 'package:barback/barback.dart'; |
| 18 | 16 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 d.dir("web", [d.file("main.dart", "void main() {}")]) | 43 d.dir("web", [d.file("main.dart", "void main() {}")]) |
| 46 ]).create(); | 44 ]).create(); |
| 47 | 45 |
| 48 createLockFile('myapp', pkg: ['barback']); | 46 createLockFile('myapp', pkg: ['barback']); |
| 49 | 47 |
| 50 pubServe(); | 48 pubServe(); |
| 51 requestShouldSucceed("main.dart.out", isUnminifiedDart2JSOutput); | 49 requestShouldSucceed("main.dart.out", isUnminifiedDart2JSOutput); |
| 52 endPubServe(); | 50 endPubServe(); |
| 53 }); | 51 }); |
| 54 } | 52 } |
| OLD | NEW |