forked from firka/flutter
Reland double gzip wrapping NOTICES to reduce on-disk installed space (#80897)
This commit is contained in:
@@ -88,7 +88,7 @@ flutter:
|
||||
|
||||
expect(fileSystem.file('${environment.buildDir.path}/flutter_assets/AssetManifest.json'), exists);
|
||||
expect(fileSystem.file('${environment.buildDir.path}/flutter_assets/FontManifest.json'), exists);
|
||||
expect(fileSystem.file('${environment.buildDir.path}/flutter_assets/NOTICES'), exists);
|
||||
expect(fileSystem.file('${environment.buildDir.path}/flutter_assets/NOTICES.Z'), exists);
|
||||
// See https://github.com/flutter/flutter/issues/35293
|
||||
expect(fileSystem.file('${environment.buildDir.path}/flutter_assets/assets/foo/bar.png'), exists);
|
||||
// See https://github.com/flutter/flutter/issues/46163
|
||||
|
||||
@@ -111,6 +111,16 @@ void main() {
|
||||
expect(content.isModified, isFalse);
|
||||
});
|
||||
|
||||
testWithoutContext('DevFSStringCompressingBytesContent', () {
|
||||
final DevFSStringCompressingBytesContent content =
|
||||
DevFSStringCompressingBytesContent('uncompressed string');
|
||||
|
||||
expect(content.equals('uncompressed string'), isTrue);
|
||||
expect(content.bytes, isNotNull);
|
||||
expect(content.isModified, isTrue);
|
||||
expect(content.isModified, isFalse);
|
||||
});
|
||||
|
||||
testWithoutContext('DevFS create throws a DevFSException when vmservice disconnects unexpectedly', () async {
|
||||
final FileSystem fileSystem = MemoryFileSystem.test();
|
||||
final OperatingSystemUtils osUtils = MockOperatingSystemUtils();
|
||||
|
||||
@@ -132,7 +132,7 @@ flutter:
|
||||
'C:/build/flutter_assets/assets/foo.png',
|
||||
'C:/build/flutter_assets/AssetManifest.json',
|
||||
'C:/build/flutter_assets/FontManifest.json',
|
||||
'C:/build/flutter_assets/NOTICES',
|
||||
'C:/build/flutter_assets/NOTICES.Z',
|
||||
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll',
|
||||
'C:/winuwp/flutter/ephemeral/flutter_windows_winuwp.dll.pdb',
|
||||
'C:/winuwp/flutter/ephemeral/icudtl.dat'
|
||||
|
||||
Reference in New Issue
Block a user