equal
deleted
inserted
replaced
51 void testCallStatusIcon(); |
51 void testCallStatusIcon(); |
52 void testVideoCallStatusIcon(); |
52 void testVideoCallStatusIcon(); |
53 void testVoipCallStatusIcon(); |
53 void testVoipCallStatusIcon(); |
54 void testNumberTypeIcon(); |
54 void testNumberTypeIcon(); |
55 void testCipheringIcon(); |
55 void testCipheringIcon(); |
|
56 void testAvatar(); |
56 |
57 |
57 private: |
58 private: |
58 BubbleStylePlugin* mPluginInstance; |
59 BubbleStylePlugin* mPluginInstance; |
59 HbStyleInterface* mPlugin; |
60 HbStyleInterface* mPlugin; |
60 HbWidget* mParent; |
61 HbWidget* mParent; |
363 item, (HbStyle::Primitive)(BP_Ciphering_icon), |
364 item, (HbStyle::Primitive)(BP_Ciphering_icon), |
364 &option); |
365 &option); |
365 QVERIFY(icon->icon().iconName()==""); |
366 QVERIFY(icon->icon().iconName()==""); |
366 } |
367 } |
367 |
368 |
|
369 void ut_BubbleStylePlugin::testAvatar() |
|
370 { |
|
371 QGraphicsItem *item = mPlugin->createPrimitive( |
|
372 (HbStyle::Primitive)(BP_DefaultAvatar_icon),mParent); |
|
373 QVERIFY(item); |
|
374 QVERIFY(item->parentItem()==mParent); |
|
375 |
|
376 HbIconItem* icon = qgraphicsitem_cast<HbIconItem*>(item); |
|
377 QVERIFY(icon); |
|
378 BubbleStyleOption option; |
|
379 mPlugin->updatePrimitive( |
|
380 item, (HbStyle::Primitive)(BP_DefaultAvatar_icon), |
|
381 &option); |
|
382 QVERIFY(icon->icon().iconName()=="qtg_large_avatar"); |
|
383 } |
|
384 |
368 BUBBLE_TEST_MAIN(ut_BubbleStylePlugin) |
385 BUBBLE_TEST_MAIN(ut_BubbleStylePlugin) |
369 #include "ut_bubblestyleplugin.moc" |
386 #include "ut_bubblestyleplugin.moc" |