~ubuntu-branches/ubuntu/trusty/kdebase/trusty

« back to all changes in this revision

Viewing changes to apps/dolphin/src/tests/testbase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-12-07 12:42:37 UTC
  • mfrom: (1.1.54 upstream)
  • Revision ID: james.westby@ubuntu.com-20101207124237-w47k8kdpkkfs6p5v
Tags: 4:4.5.85-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
void TestBase::reloadViewAndWait()
68
68
{
69
 
    kDebug() << "Reloading view and waiting for the finishedPathLoading(const KUrl&) signal...";
70
 
    QSignalSpy finished(m_view, SIGNAL(finishedPathLoading(const KUrl&)));
71
69
    m_view->reload();
72
 
    while (finished.count() != 1) {
73
 
        QTest::qWait(50);
74
 
    }
75
 
    kDebug() << "...signal received, continuing";
 
70
    QVERIFY(QTest::kWaitForSignal(m_view, SIGNAL(finishedPathLoading(const KUrl&)), 2000));
76
71
}
77
72
 
78
73
KUrl TestBase::testDirUrl() const