forked from firka/flutter
[tools, web] Make sure to copy the dump-info file if dump-info is used (#165013)
Also fixed the wording of the dump-info build flag
This commit is contained in:
@@ -227,14 +227,18 @@ name: foo
|
||||
..createSync(recursive: true)
|
||||
..writeAsStringSync('A');
|
||||
environment.buildDir.childFile('main.dart.js').createSync();
|
||||
environment.buildDir.childFile('main.dart.js.info.json').createSync();
|
||||
environment.buildDir.childFile('main.dart.js.map').createSync();
|
||||
environment.buildDir.childFile('main.dart.js_1.part.js').createSync();
|
||||
environment.buildDir.childFile('main.dart.js_1.part.js.map').createSync();
|
||||
|
||||
await WebReleaseBundle(<WebCompilerConfig>[const JsCompilerConfig()]).build(environment);
|
||||
await WebReleaseBundle(<WebCompilerConfig>[
|
||||
const JsCompilerConfig(dumpInfo: true),
|
||||
]).build(environment);
|
||||
|
||||
expect(environment.outputDir.childFile('foo.txt').readAsStringSync(), 'A');
|
||||
expect(environment.outputDir.childFile('main.dart.js').existsSync(), true);
|
||||
expect(environment.outputDir.childFile('main.dart.js.info.json').existsSync(), true);
|
||||
expect(environment.outputDir.childFile('main.dart.js.map').existsSync(), true);
|
||||
expect(environment.outputDir.childFile('main.dart.js_1.part.js').existsSync(), true);
|
||||
expect(environment.outputDir.childFile('main.dart.js_1.part.js.map').existsSync(), true);
|
||||
|
||||
Reference in New Issue
Block a user