OLD | NEW |
(Empty) | |
| 1 import 'package:path/path.dart' as path; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../descriptor.dart' as d; |
| 4 import '../serve/utils.dart'; |
| 5 import '../test_pub.dart'; |
| 6 main() { |
| 7 initConfig(); |
| 8 integration( |
| 9 "Dart core libraries are available to source maps when the " |
| 10 "build directory is a subdirectory", |
| 11 () { |
| 12 d.dir( |
| 13 appPath, |
| 14 [ |
| 15 d.appPubspec(), |
| 16 d.dir( |
| 17 "web", |
| 18 [ |
| 19 d.dir( |
| 20 "sub", |
| 21 [ |
| 22 d.file( |
| 23 "main.dart", |
| 24 "main() => new StringBuffer().writeAll(['s']);")
])])]).create(); |
| 25 var webSub = path.join("web", "sub"); |
| 26 pubServe(args: [webSub]); |
| 27 requestShouldSucceed( |
| 28 "main.dart.js.map", |
| 29 contains(r"packages/$sdk/lib/core/string_buffer.dart"), |
| 30 root: webSub); |
| 31 requestShouldSucceed( |
| 32 r"packages/$sdk/lib/core/string_buffer.dart", |
| 33 contains("class StringBuffer"), |
| 34 root: webSub); |
| 35 endPubServe(); |
| 36 }); |
| 37 } |
OLD | NEW |