OLD | NEW |
(Empty) | |
| 1 import 'package:scheduled_test/scheduled_test.dart'; |
| 2 import '../descriptor.dart' as d; |
| 3 import '../test_pub.dart'; |
| 4 main() { |
| 5 initConfig(); |
| 6 integration("includes source map URLs in a debug build", () { |
| 7 d.dir( |
| 8 appPath, |
| 9 [ |
| 10 d.appPubspec(), |
| 11 d.dir( |
| 12 "web", |
| 13 [d.file("main.dart", "void main() => print('hello');")])]).creat
e(); |
| 14 schedulePub( |
| 15 args: ["build", "--mode", "debug"], |
| 16 output: new RegExp(r'Built \d+ files to "build".'), |
| 17 exitCode: 0); |
| 18 d.dir( |
| 19 appPath, |
| 20 [ |
| 21 d.dir( |
| 22 'build', |
| 23 [ |
| 24 d.dir( |
| 25 'web', |
| 26 [ |
| 27 d.matcherFile('main.dart.js', contains("# sourceMapp
ingURL=main.dart.js.map")), |
| 28 d.matcherFile( |
| 29 'main.dart.js.map', |
| 30 contains('"file": "main.dart.js"'))])])]).valida
te(); |
| 31 }); |
| 32 } |
OLD | NEW |