homescreenapp/hshomescreenclientplugin/tsrc/t_hshomescreenclientplugin/src/t_hshomescreenclientplugin.cpp
changeset 90 3ac3aaebaee5
parent 39 4e8ebe173323
--- a/homescreenapp/hshomescreenclientplugin/tsrc/t_hshomescreenclientplugin/src/t_hshomescreenclientplugin.cpp	Mon Sep 13 13:03:23 2010 +0300
+++ b/homescreenapp/hshomescreenclientplugin/tsrc/t_hshomescreenclientplugin/src/t_hshomescreenclientplugin.cpp	Mon Sep 20 10:19:07 2010 +0300
@@ -109,6 +109,27 @@
 // ---------------------------------------------------------------------------
 // ---------------------------------------------------------------------------
 //
+void HsHomescreenClientPluginTest::testSetWallpaper2()
+{  
+    HsHomescreenClient *client = new HsHomescreenClient;
+    
+    QSignalSpy requestFinishedSpy(client, SIGNAL(requestFinished()));
+    
+    bool result = client->setWallpaper("wallpaper", "wallpaper");
+    
+    // but emit correct signals
+    connect(this, SIGNAL(onRequestCompletedTest(QVariant)), client, SLOT(onRequestCompleted(QVariant)));
+    emit onRequestCompletedTest(true);
+    
+    QVERIFY(requestFinishedSpy.count());
+    QVERIFY(client->mRequestResult);
+    
+    delete client;    
+}
+
+// ---------------------------------------------------------------------------
+// ---------------------------------------------------------------------------
+//
 void HsHomescreenClientPluginTest::testOnRequestError()
 {  
     HsHomescreenClient *client = new HsHomescreenClient;