Take DPR into account for image inversion (#88309)
This commit is contained in:
@@ -4,4 +4,4 @@ The tests in this folder must be run with `flutter test --enable-vmservice`,
|
||||
since they test that trace data is written to the timeline by connecting to
|
||||
the observatory.
|
||||
|
||||
These tests will fail if run without this flag.
|
||||
These tests will fail if run without this flag.
|
||||
|
||||
@@ -72,7 +72,7 @@ void main() {
|
||||
expect(event.extensionKind, 'Flutter.ImageSizesForFrame');
|
||||
expect(
|
||||
jsonEncode(event.extensionData!.data),
|
||||
'{"test.png":{"source":"test.png","displaySize":{"width":200.0,"height":100.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":106666,"decodedSizeInBytes":480000}}',
|
||||
'{"test.png":{"source":"test.png","displaySize":{"width":600.0,"height":300.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":960000,"decodedSizeInBytes":480000}}',
|
||||
);
|
||||
}, skip: isBrowser); // [intended] uses dart:isolate and io.
|
||||
|
||||
@@ -104,7 +104,7 @@ void main() {
|
||||
expect(event.extensionKind, 'Flutter.ImageSizesForFrame');
|
||||
expect(
|
||||
jsonEncode(event.extensionData!.data),
|
||||
'{"test.png":{"source":"test.png","displaySize":{"width":300.0,"height":300.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":480000,"decodedSizeInBytes":480000}}',
|
||||
'{"test.png":{"source":"test.png","displaySize":{"width":900.0,"height":900.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":4320000,"decodedSizeInBytes":480000}}',
|
||||
);
|
||||
}, skip: isBrowser); // [intended] uses dart:isolate and io.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user