1 #include "test_bitmapimage.h"
2 #include "bitmapimage.h"
4 void TestBitmapImage::initTestCase()
9 void TestBitmapImage::cleanupTestCase()
14 void TestBitmapImage::testInitImage()
17 std::shared_ptr< BitmapImage > sp( b );
20 void TestBitmapImage::testInitSize()
23 std::shared_ptr< BitmapImage > sp( b );
25 QCOMPARE( b->width(), 0 );
26 QCOMPARE( b->height(), 0 );
27 QCOMPARE( b->top(), 0 );
28 QCOMPARE( b->left(), 0 );
31 void TestBitmapImage::testInitWithColorAndBoundary()
34 std::shared_ptr< BitmapImage > sp( b );
36 QCOMPARE( b->left(), 10 );
37 QCOMPARE( b->top(), 20 );
38 QCOMPARE( b->width(), 30 );
39 QCOMPARE( b->height(), 40 );