diff -r e4f038c420f7 -r 3ac3aaebaee5 homescreenapp/hshomescreenclientplugin/tsrc/t_hshomescreenclientplugin/src/t_hshomescreenclientplugin.cpp --- 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;