From f86a89452708c27dd48479e52f444ae01ccddf9c Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Tue, 22 May 2018 14:45:20 +0200 Subject: [PATCH] winrt: Make widgets/util auto tests pass Task-number: QTBUG-68297 Change-Id: I12d2a431f927b29c4df2b3a6ddd3e5978916e136 Reviewed-by: Maurice Kalinowski --- tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp index 0511c278d5..ad64f1aef7 100644 --- a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp @@ -621,6 +621,9 @@ void tst_QCompleter::directoryModel_data() void tst_QCompleter::directoryModel() { +#ifdef Q_OS_WINRT + QSKIP("WinRT cannot access directories outside of the application's sandbox"); +#endif filter(); } @@ -667,6 +670,9 @@ void tst_QCompleter::fileSystemModel_data() void tst_QCompleter::fileSystemModel() { +#ifdef Q_OS_WINRT + QSKIP("WinRT cannot access directories outside of the application's sandbox"); +#endif //QFileSystemModel is assync. filter(true); } @@ -1696,6 +1702,9 @@ void tst_QCompleter::QTBUG_14292_filesystem() // Wait for all file system model slots/timers to trigger // until the model sees the subdirectories. +#ifdef Q_OS_WINRT + QEXPECT_FAIL("", "Fails on WinRT - QTBUG-68297", Abort); +#endif QTRY_VERIFY(testFileSystemReady(model)); // But this should not cause the combo to pop up. QVERIFY(!comp.popup()->isVisible());