Fixed bug in tests
[mdictionary] / trunk / tests / mDictionaryTests / tst_Backbone.cpp
index 51614e2..9f615fe 100644 (file)
@@ -54,7 +54,6 @@ private Q_SLOTS:
     void searchTest();
     void translationTest();
     void historyTest();
-    void multiTranslationTest();
     void quitTest();
 };
 
@@ -206,29 +205,6 @@ void BackboneTest::translationTest() {
     QVERIFY2(back->result().size() == total*2, "Lost some of the translations");
 }
 
-void BackboneTest::multiTranslationTest() {
-    QSignalSpy translatS(back, SIGNAL(ready()));
-    QVERIFY2 (translatS.isValid() == true, "ready() signal is invalid");
-
-
-    QTime time;
-    QStringList list;
-
-    list << "a" << "b" << "c";
-    back->search(list);
-    qDebug() << "Time for backbone.search: " << time.elapsed();
-    usleep(1000);
-    time.start();
-    back->translationReady();
-    qDebug() << "Time for backbone->translation: " << time.elapsed();
-
-    QVERIFY2(translatS.count() == 1, "Lost finall 'ready()' signal");
-    QVERIFY2(back->result().size() == total*2*3,
-             "Lost some of the translations");
-}
-
-
-
 void BackboneTest::quitTest() {
     QSignalSpy translatS(back, SIGNAL(closeOk()));
     for(int i = 0; i < total; i++) {