Changeset View
Changeset View
Standalone View
Standalone View
tests/AbstractFloatItemTest.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 72 | { | |||
---|---|---|---|---|---|
79 | } | 79 | } | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | void AbstractFloatItemTest::defaultConstructor() | 82 | void AbstractFloatItemTest::defaultConstructor() | ||
83 | { | 83 | { | ||
84 | const NullFloatItem item; | 84 | const NullFloatItem item; | ||
85 | 85 | | |||
86 | QCOMPARE( item.renderPolicy(), QString( "ALWAYS") ); | 86 | QCOMPARE( item.renderPolicy(), QString( "ALWAYS") ); | ||
87 | QCOMPARE( item.renderPosition(), QStringList( "FLOAT_ITEM" ) ); | 87 | QCOMPARE( item.renderPositions(), RenderPositions(FloatItemRenderPosition) ); | ||
88 | QCOMPARE( item.cacheMode(), AbstractFloatItem::ItemCoordinateCache ); | 88 | QCOMPARE( item.cacheMode(), AbstractFloatItem::ItemCoordinateCache ); | ||
89 | QCOMPARE( item.frame(), AbstractFloatItem::RectFrame ); | 89 | QCOMPARE( item.frame(), AbstractFloatItem::RectFrame ); | ||
90 | QCOMPARE( item.padding(), 4. ); | 90 | QCOMPARE( item.padding(), 4. ); | ||
91 | QCOMPARE( item.contentSize(), QSizeF( 150, 50 ) ); | 91 | QCOMPARE( item.contentSize(), QSizeF( 150, 50 ) ); | ||
92 | QCOMPARE( item.position(), QPointF( 10, 10 ) ); | 92 | QCOMPARE( item.position(), QPointF( 10, 10 ) ); | ||
93 | QCOMPARE( item.visible(), true ); | 93 | QCOMPARE( item.visible(), true ); | ||
94 | QCOMPARE( item.positionLocked(), true ); | 94 | QCOMPARE( item.positionLocked(), true ); | ||
95 | QVERIFY( item.settings().contains( "position" ) ); | 95 | QVERIFY( item.settings().contains( "position" ) ); | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |