~ubuntu-branches/ubuntu/quantal/arora/quantal

« back to all changes in this revision

Viewing changes to autotests/historymanager/tst_historymanager.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Roderick B. Greening
  • Date: 2009-10-01 16:08:58 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20091001160858-h1wnt3ddyzl07nih
Tags: 0.10.0-0ubuntu1
* New upstream release 
* Remove patches
  - kubuntu_01_google_lucky.diff - Open Search now used upstream
  - kubuntu_02_default_bookmarks.diff - bookmarks fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
    */
191
191
}
192
192
 
193
 
// public void addHistoryEntry(HistoryEntry* item)
 
193
// public void addHistoryEntry(HistoryEntry *item)
194
194
void tst_HistoryManager::addHistoryEntry()
195
195
{
196
196
    QFETCH(HistoryList, initial);
216
216
    QTest::newRow("two") << (HistoryList() << HistoryEntry() << HistoryEntry("http://foo.com")) << QUrl() << QString("foo");
217
217
}
218
218
 
219
 
// public void updateHistoryEntry(QUrl const& url, QString const title)
 
219
// public void updateHistoryEntry(QUrl const &url, QString const title)
220
220
void tst_HistoryManager::updateHistoryEntry()
221
221
{
222
222
    QFETCH(HistoryList, list);
271
271
    history.setDaysToExpire(daysToExpire);
272
272
    QCOMPARE(history.daysToExpire(), daysToExpire);
273
273
 
274
 
    QTest::qWait(wait_seconds * 1000);
 
274
    QTest::qWait(wait_seconds*1000);
275
275
    QCOMPARE(history.history(), post);
276
276
 
277
277
    // re-add the items that have probably expired to catch any cache issues