mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-07 17:50:59 +08:00
qt 6.5.1 original
This commit is contained in:
33
tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt
Normal file
33
tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
if(NOT QT_FEATURE_private_tests)
|
||||
return()
|
||||
endif()
|
||||
|
||||
#####################################################################
|
||||
## tst_qcoreapplication Test:
|
||||
#####################################################################
|
||||
|
||||
if (WIN32)
|
||||
set(target_version "1.2.3.4")
|
||||
else()
|
||||
set(target_version "1.2.3")
|
||||
endif()
|
||||
|
||||
qt_internal_add_test(tst_qcoreapplication
|
||||
VERSION ${target_version}
|
||||
SOURCES
|
||||
tst_qcoreapplication.cpp tst_qcoreapplication.h
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
set_property(TARGET tst_qcoreapplication PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
|
||||
set_property(TARGET tst_qcoreapplication PROPERTY PROPERTY MACOSX_BUNDLE TRUE)
|
||||
endif()
|
||||
|
||||
if (ANDROID)
|
||||
set_property(TARGET tst_qcoreapplication PROPERTY QT_ANDROID_VERSION_NAME ${target_version})
|
||||
endif()
|
8
tests/auto/corelib/kernel/qcoreapplication/Info.plist
Normal file
8
tests/auto/corelib/kernel/qcoreapplication/Info.plist
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.2.3</string>
|
||||
</dict>
|
||||
</plist>
|
1088
tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp
Normal file
1088
tests/auto/corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// Copyright (C) 2016 Intel Corporation.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||
|
||||
#ifndef TST_QCOREAPPLICATION_H
|
||||
#define TST_QCOREAPPLICATION_H
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
|
||||
class tst_QCoreApplication: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void sendEventsOnProcessEvents(); // this must be the first test
|
||||
void getSetCheck();
|
||||
void qAppName();
|
||||
void qAppVersion();
|
||||
void argc();
|
||||
void postEvent();
|
||||
void removePostedEvents();
|
||||
#if QT_CONFIG(thread)
|
||||
void deliverInDefinedOrder();
|
||||
#endif
|
||||
void applicationPid();
|
||||
#ifdef QT_BUILD_INTERNAL
|
||||
void globalPostedEventsCount();
|
||||
#endif
|
||||
void processEventsAlwaysSendsPostedEvents();
|
||||
#ifdef Q_OS_WIN
|
||||
void sendPostedEventsInNativeLoop();
|
||||
#endif
|
||||
void quit();
|
||||
void reexec();
|
||||
void execAfterExit();
|
||||
void eventLoopExecAfterExit();
|
||||
void customEventDispatcher();
|
||||
void testQuitLock();
|
||||
void QTBUG31606_QEventDestructorDeadLock();
|
||||
void applicationEventFilters_mainThread();
|
||||
void applicationEventFilters_auxThread();
|
||||
void threadedEventDelivery_data();
|
||||
void threadedEventDelivery();
|
||||
void testTrWithPercantegeAtTheEnd();
|
||||
#if QT_CONFIG(library)
|
||||
void addRemoveLibPaths();
|
||||
#endif
|
||||
void theMainThread();
|
||||
};
|
||||
|
||||
#endif // TST_QCOREAPPLICATION_H
|
Reference in New Issue
Block a user