Android: Fix some tests for QCompleter
When checking for completion on the file system, we need to check for directories that actually exists. Change-Id: Id83e3802abcd40355dcd8cd47f2d55061eacd117 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
parent
5b1da97b6b
commit
560c8ac098
@ -601,6 +601,9 @@ void tst_QCompleter::directoryModel_data()
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
QTest::newRow("(/a)") << "/a" << "" << "Applications" << "/Applications";
|
||||
QTest::newRow("(/u)") << "/u" << "" << "Users" << "/Users";
|
||||
#elif defined(Q_OS_ANDROID)
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
QTest::newRow("(/et)") << "/et" << "" << "etc" << "/etc";
|
||||
#else
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
#if !defined(Q_OS_IRIX) && !defined(Q_OS_AIX) && !defined(Q_OS_HPUX) && !defined(Q_OS_QNX)
|
||||
@ -647,6 +650,9 @@ void tst_QCompleter::fileSystemModel_data()
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
QTest::newRow("(/a)") << "/a" << "" << "Applications" << "/Applications";
|
||||
// QTest::newRow("(/d)") << "/d" << "" << "Developer" << "/Developer";
|
||||
#elif defined(Q_OS_ANDROID)
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
QTest::newRow("(/et)") << "/et" << "" << "etc" << "/etc";
|
||||
#else
|
||||
QTest::newRow("()") << "" << "" << "/" << "/";
|
||||
#if !defined(Q_OS_IRIX) && !defined(Q_OS_AIX) && !defined(Q_OS_HPUX) && !defined(Q_OS_QNX)
|
||||
|
Loading…
Reference in New Issue
Block a user