Skip to content

Commit

Permalink
Fixing SVG unit tests to correctly check the default SVG size
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Aug 11, 2021
1 parent 1c2786d commit 7af95c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/QtImageReader.cpp
Expand Up @@ -65,10 +65,10 @@ TEST_CASE( "Check_SVG_Loading", "[libopenshot][qtimagereader]" )
r.Open();

// Get frame, with no Timeline or Clip
// Default SVG scaling sizes things to 1920x1080
// Size should be equal to default SVG size
std::shared_ptr<Frame> f = r.GetFrame(1);
CHECK(f->GetImage()->width() == 1080);
CHECK(f->GetImage()->height() == 1080);
CHECK(f->GetImage()->width() == 72);
CHECK(f->GetImage()->height() == 72);

Fraction fps(30000,1000);
Timeline t1(640, 480, fps, 44100, 2, LAYOUT_STEREO);
Expand Down

0 comments on commit 7af95c2

Please sign in to comment.