~ubuntu-branches/ubuntu/wily/ubuntu-system-settings-online-accounts/wily

« back to all changes in this revision

Viewing changes to tests/click-hooks/tst_online_accounts_hooks.cpp

  • Committer: Package Import Robot
  • Author(s): CI Train Bot
  • Date: 2015-08-04 09:05:45 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20150804090545-ddapik19edc12vdh
Tags: 0.6+15.10.20150804-0ubuntu1
Resync trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
398
398
        "</provider>");
399
399
    QVERIFY(m_installDir.exists(stillInstalled));
400
400
 
401
 
    writeHookFile("com-ubuntu.test_StillInstalled_2.0.provider",
 
401
    /* Write a newer version of the hook, to make sure that accounts created
 
402
     * with older versions of the app are preserved */
 
403
    writeHookFile("com-ubuntu.test_StillInstalled_3.0.provider",
402
404
        "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
403
405
        "<provider>\n"
404
406
        "</provider>");
471
473
 
472
474
    /* Now remove the hook file and write a newer version of it */
473
475
    clearHooksDir();
 
476
    QTest::qWait(1500); // make sure that the timestamp is newer
474
477
    writeHookFile("com-ubuntu.test_MyApp_1.1.application",
475
478
        "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
476
479
        "<application>\n"