Rearrange the automatic tests.
Split them into unit and integration tests. Integration tests really need to be run on the real platform (not in a VM etc) since they are somewhat unstable or nonfunctional otherwise. A few tests were previously broken by QUrl changes and they were repaired. Removed one test since it was not providing a lot of value. There are still a number of tests that rely on Q_AUTOTEST_EXPORT symbols. Change-Id: Ic402abf0af946baa5945075d975b3f584f9ef280 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
7dfb883df6
commit
e3a8c165ea
9
tests/auto/unit/qmediaimageviewer/images.qrc
Normal file
9
tests/auto/unit/qmediaimageviewer/images.qrc
Normal file
@@ -0,0 +1,9 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>images/coverart.png</file>
|
||||
<file>images/image.jpg</file>
|
||||
<file>images/image.png</file>
|
||||
<file>images/invalid.png</file>
|
||||
<file>images/poster.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
BIN
tests/auto/unit/qmediaimageviewer/images/coverart.png
Normal file
BIN
tests/auto/unit/qmediaimageviewer/images/coverart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 230 B |
BIN
tests/auto/unit/qmediaimageviewer/images/image.jpg
Normal file
BIN
tests/auto/unit/qmediaimageviewer/images/image.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
tests/auto/unit/qmediaimageviewer/images/image.png
Normal file
BIN
tests/auto/unit/qmediaimageviewer/images/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 230 B |
2
tests/auto/unit/qmediaimageviewer/images/invalid.png
Normal file
2
tests/auto/unit/qmediaimageviewer/images/invalid.png
Normal file
@@ -0,0 +1,2 @@
|
||||
This is not really a PNG file.
|
||||
|
||||
BIN
tests/auto/unit/qmediaimageviewer/images/poster.png
Normal file
BIN
tests/auto/unit/qmediaimageviewer/images/poster.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 230 B |
16
tests/auto/unit/qmediaimageviewer/qmediaimageviewer.pro
Normal file
16
tests/auto/unit/qmediaimageviewer/qmediaimageviewer.pro
Normal file
@@ -0,0 +1,16 @@
|
||||
CONFIG += testcase
|
||||
TARGET = tst_qmediaimageviewer
|
||||
|
||||
QT += multimedia-private network testlib
|
||||
CONFIG += no_private_qt_headers_warning
|
||||
|
||||
SOURCES += tst_qmediaimageviewer.cpp
|
||||
|
||||
RESOURCES += \
|
||||
images.qrc
|
||||
|
||||
!contains(QT_CONFIG, no-jpeg):DEFINES += QTEST_HAVE_JPEG
|
||||
|
||||
wince* {
|
||||
!contains(QT_CONFIG, no-jpeg): DEPLOYMENT_PLUGIN += qjpeg
|
||||
}
|
||||
1044
tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp
Normal file
1044
tests/auto/unit/qmediaimageviewer/tst_qmediaimageviewer.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user