mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Tests/LibGfx: Call ImageDecoder::size()
before frame()
Reordering these calls allow us to ensure that all encoders are able to return the size of the image before they are requested to decode the whole bitmap.
This commit is contained in:
parent
7a48d59727
commit
7b4630932b
1 changed files with 1 additions and 1 deletions
|
@ -42,8 +42,8 @@ static Gfx::ImageFrameDescriptor expect_single_frame(Gfx::ImageDecoderPlugin& pl
|
|||
|
||||
static Gfx::ImageFrameDescriptor expect_single_frame_of_size(Gfx::ImageDecoderPlugin& plugin_decoder, Gfx::IntSize size)
|
||||
{
|
||||
auto frame = expect_single_frame(plugin_decoder);
|
||||
EXPECT_EQ(plugin_decoder.size(), size);
|
||||
auto frame = expect_single_frame(plugin_decoder);
|
||||
EXPECT_EQ(frame.image->size(), size);
|
||||
return frame;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue