Skip to content

Commit 3edda09

Browse files
committed
Split GetImage call into separate test
1 parent 529fc11 commit 3edda09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Frame_Tests.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ TEST(Default_Constructor)
5555
// Should be false until we load or create contents
5656
CHECK_EQUAL(false, f1.has_image_data);
5757
CHECK_EQUAL(false, f1.has_audio_data);
58+
}
5859

59-
// Calling GetImage() paints a blank frame, by default
60+
TEST(GetImage)
61+
{
62+
Frame f1;
63+
// Calling GetImage() paints a blank frame, by default.
64+
// It also adds image data to the frame!
6065
std::shared_ptr<QImage> i1 = f1.GetImage();
6166

6267
CHECK(i1 != nullptr);

0 commit comments

Comments
 (0)