| 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; | 5 library pub_tests; |
| 6 | 6 |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | 7 import 'package:scheduled_test/scheduled_test.dart'; |
| 8 import '../../descriptor.dart' as d; | 8 import '../../descriptor.dart' as d; |
| 9 import '../../test_pub.dart'; | 9 import '../../test_pub.dart'; |
| 10 import '../utils.dart'; | 10 import '../utils.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 // TODO(rnystrom): Split into independent tests. | 13 // TODO(rnystrom): Split into independent tests. |
| 14 initConfig(); | |
| 15 setUp(() { | 14 setUp(() { |
| 16 d.dir("foo", [ | 15 d.dir("foo", [ |
| 17 d.libPubspec("foo", "0.0.1"), | 16 d.libPubspec("foo", "0.0.1"), |
| 18 d.dir("lib", [ | 17 d.dir("lib", [ |
| 19 d.file("foo.dart", "foo") | 18 d.file("foo.dart", "foo") |
| 20 ]) | 19 ]) |
| 21 ]).create(); | 20 ]).create(); |
| 22 | 21 |
| 23 d.dir(appPath, [ | 22 d.dir(appPath, [ |
| 24 d.appPubspec({ | 23 d.appPubspec({ |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 87 |
| 89 integration("converts URLs to matching asset ids in a dependency's lib/", () { | 88 integration("converts URLs to matching asset ids in a dependency's lib/", () { |
| 90 // Path in lib/. | 89 // Path in lib/. |
| 91 pubServe(shouldGetFirst: true); | 90 pubServe(shouldGetFirst: true); |
| 92 expectWebSocketResult("urlToAssetId", { | 91 expectWebSocketResult("urlToAssetId", { |
| 93 "url": getServerUrl("web", "packages/foo/foo.dart") | 92 "url": getServerUrl("web", "packages/foo/foo.dart") |
| 94 }, {"package": "foo", "path": "lib/foo.dart"}); | 93 }, {"package": "foo", "path": "lib/foo.dart"}); |
| 95 endPubServe(); | 94 endPubServe(); |
| 96 }); | 95 }); |
| 97 } | 96 } |
| OLD | NEW |