wasm: Enable fileselector test
Also add test files for emscripten platform to build Change-Id: Ief03e44a4e3f3339a65453469a7ae0a6969f2252 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>bb10
parent
db240d99cf
commit
1319101ece
|
|
@ -63,6 +63,7 @@ if(QT_BUILD_WASM_BATCHED_TESTS)
|
|||
add_subdirectory(corelib/io/qbuffer)
|
||||
add_subdirectory(corelib/io/qabstractfileengine)
|
||||
add_subdirectory(corelib/io/qsettings)
|
||||
add_subdirectory(corelib/io/qfileselector)
|
||||
add_subdirectory(corelib/io/qfile)
|
||||
add_subdirectory(corelib/serialization)
|
||||
add_subdirectory(corelib/text)
|
||||
|
|
|
|||
|
|
@ -32,10 +32,14 @@ set(qfileselector_resource_files
|
|||
"platforms/+ios/test2"
|
||||
"platforms/+linux/test"
|
||||
"platforms/+linux/test2"
|
||||
"platforms/+wasm/test"
|
||||
"platforms/+wasm/test2"
|
||||
"platforms/+macos/test"
|
||||
"platforms/+macos/test2"
|
||||
"platforms/+qnx/test"
|
||||
"platforms/+qnx/test2"
|
||||
"platforms/+unix/+emscripten/+wasm/test"
|
||||
"platforms/+unix/+emscripten/test"
|
||||
"platforms/+unix/+android/test"
|
||||
"platforms/+unix/+darwin/+ios/test"
|
||||
"platforms/+unix/+darwin/+macos/test"
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ void tst_QFileSelector::basicTest_data()
|
|||
QString expectedPlatform1File(":/platforms");
|
||||
QString expectedPlatform2File(""); //Only the last selector
|
||||
QString expectedPlatform3File; // Only the first selector (the family)
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && \
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && !defined(Q_OS_WASM) && \
|
||||
!defined(Q_OS_DARWIN) && !defined(Q_OS_LINUX) && !defined(Q_OS_HAIKU) && !defined(Q_OS_QNX)
|
||||
/* We are only aware of specific unixes, and do not have test files for any of the others.
|
||||
However those unixes can get a selector added from the result of a uname call, so this will
|
||||
|
|
|
|||
Loading…
Reference in New Issue