QCOMPARE(m->stopped, 0);
}
+ back->search("");
back->stopSearching();
+
for(int i = 0; i < total; i++) {
CommonDictInterfaceMock *m = (CommonDictInterfaceMock*)dict[i];
QCOMPARE(m->stopped, 1);
back->_searchDicts = 1;
back->search(list);
+ sleep(1);
for(int i = 0; i < total; i++) {
QTime time;
time.start();
QString list("nic");
+ back->_searchBookmarks = 0;
+ back->_searchDicts = 1;
back->search(list);
- qDebug() << "Time for backbone.search: " << time.elapsed();
- usleep(1000);
- time.start();
+ sleep(2);
+ qDebug() << back->result().size() << total;
back->translationReady();
- qDebug() << "Time for backbone->translation: " << time.elapsed();
+ qDebug() << back->result().size() << total;
- QVERIFY2(translatS.count() == 1, "Lost finall 'ready()' signal");
QVERIFY2(back->result().size() == total*2, "Lost some of the translations");
}
QCOMPARE(m->stopped, 0);
}
+ back->search("");
back->quit();
for(int i = 0; i < total; i++) {
}
void BackboneTest::historyTest() {
- History* history = back->history();
+ History* history = new History(10,this);
history->add("mleko");