diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-01-31 16:59:03 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-02 11:30:24 +0200 |
commit | 6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f (patch) | |
tree | 28aaf76918d1ff0ffe2a437573bb1ab7a012c4ec /tests/tst_DownloadUpdateTask.cpp | |
parent | e508728246043fcaf8bee565e73b15e15eb2e531 (diff) | |
download | PrismLauncher-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar.gz PrismLauncher-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.tar.bz2 PrismLauncher-6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f.zip |
NOISSUE Split MultiMC app object into MultiMC and Env
Diffstat (limited to 'tests/tst_DownloadUpdateTask.cpp')
-rw-r--r-- | tests/tst_DownloadUpdateTask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tst_DownloadUpdateTask.cpp b/tests/tst_DownloadUpdateTask.cpp index e6784402..8d8905b5 100644 --- a/tests/tst_DownloadUpdateTask.cpp +++ b/tests/tst_DownloadUpdateTask.cpp @@ -91,7 +91,7 @@ slots: void test_writeInstallScript() { - DownloadUpdateTask task( + DownloadUpdateTask task(QCoreApplication::applicationDirPath(), QUrl::fromLocalFile(QDir::current().absoluteFilePath("tests/data/")).toString(), 0); DownloadUpdateTask::UpdateOperationList ops; @@ -105,7 +105,7 @@ slots: QCOMPARE(TestsInternal::readFileUtf8(script).replace(QRegExp("[\r\n]+"), "\n"), MULTIMC_GET_TEST_FILE_UTF8(testFile).replace(QRegExp("[\r\n]+"), "\n")); } - + // DISABLED: fails. /* void test_parseVersionInfo_data() @@ -166,7 +166,7 @@ slots: QTest::addColumn<DownloadUpdateTask::VersionFileList>("newVersion"); QTest::addColumn<DownloadUpdateTask::UpdateOperationList>("expectedOperations"); - DownloadUpdateTask *downloader = new DownloadUpdateTask(QString(), -1); + DownloadUpdateTask *downloader = new DownloadUpdateTask(QCoreApplication::applicationDirPath(), QString(), -1); // update fileOne, keep fileTwo, remove fileThree QTest::newRow("test 1") |