aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make the nodes autotest QRhi compatibleLaszlo Agocs2020-05-281-35/+188
| | | | | Change-Id: I42639421258b62896b74dc4ae1c0fdfb200c83ff Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* qmltyperegistrar: Preserve isQProperty flag from metatypesUlf Hermann2020-05-282-2/+12
| | | | | | | Task-number: QTBUG-76025 Change-Id: I952afdad6410c3f7ccb05b6c3de77020b30f78d3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
* Enable QQuickWidget with OpenGL over RHILaszlo Agocs2020-05-274-6/+13
| | | | | | | | | | | | | | | | | Also adapts to new NativeTexture format, where the actual handle is passed around instead of a pointer to it. [ChangeLog][QQuickWidget][Important Behavioral Changes] In earlier versions, the returned value from QQuickWidget::quickWindow() would persist for the life time of the widget. This is no longer the case, so if you are connecting to its signals, make sure you also connect to its destroyed() signal and update the connections when it is destroyed. Fixes: QTBUG-78638 Change-Id: I33cee8543ef1ff5d31555ed3ac18ba78c9c45102 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* RHI implementation of compressed texture atlasingEirik Aavitsland2020-05-269-0/+41
| | | | | | | | | | | | | Automatic atlasing (which is enabled by default for normal textures) was added as an experimental, opt-in feature in 5.11. This commit redoes that implementation for RHI, and enables it by default. [ChangeLog] Enable automatic atlasing of compressed textures (can be disabled with QSG_DISABLE_COMPRESSED_ATLAS=1) Fixes: QTBUG-78582 Change-Id: Ia8344fffdc8dd8fb476bf6a77057c359e4816487 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Update test-suite with latest local changesEdward Welbourne2020-05-251-0/+0
| | | | | Change-Id: If8e9f503f2fac1bef8ce81d6343a2ec62cdf49e4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Adapt to changes in NativeTexture in qtbaseEskil Abrahamsen Blomfeldt2020-05-251-1/+1
| | | | | | | | | | To make the API less error prone, we have changed the void pointer to the texture handle to a 64-bit in instead, since all handles are maximum 64-bit. Task-number: QTBUG-78638 Change-Id: I9d995d6a883b3377f57d7c5b19d4bc4e15aa347b Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Fix the pinchHandler manual testShawn Rutledge2020-05-221-2/+2
| | | | | | | | | | | minimum/maximum X and Y were deprecated and replaced with separate axis objects in ea195452e80e4b5a70e8c8cdf96a30581a8dd456; this test should have been fixed then. Now that the deprecated properties were removed in 98d088d6e31c6c1bafea5674c9003d846b572680, this test didn't work. Pick-to: 5.15 Change-Id: I05cc1f58651f0774b74fda48a4ab87be30f30894 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Avoid memory leaks in QQuickView testUlf Hermann2020-05-201-9/+8
| | | | | Change-Id: Iba9fec11567199d6ab8467fa2209b4999ae84c8f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* qmllint: Fix evaluation of type assertionsUlf Hermann2020-05-201-1/+4
| | | | | | | | | | Previously, type assertions were ignored. The test case didn't fail because simple type casts were automatically detected when the derived objects were instantiated and assigned to base type properties. Pick-to: 5.15 Change-Id: I437e77ff38b7d570451cf27ca84e9897b519413f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Add CMake project file for recently introduced autotestLaszlo Agocs2020-05-201-0/+36
| | | | | | | The qquickrendercontrol autotest had no CMakeLists.txt. Change-Id: Ic5285292cf9f02b4d06b2209bae4ac75c7ba2efe Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Enable qquickframebufferobject test to functionLaszlo Agocs2020-05-201-0/+7
| | | | | | | ...by forcing OpenGL over RHI Change-Id: Iad08d85c9a5b7c3ee4956ae5c56e34a94ef9e20d Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* Fix 'as' binary operation using invalid typesMaximilian Goldstein2020-05-202-0/+9
| | | | | | | Fixes: QTBUG-81392 Change-Id: Ic83091c547a7854b7fa86b44d93c575bd7426bae Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* CMake: Fix the lancelot manual test executable locationsAlexandru Croitor2020-05-204-2/+200
| | | | | Change-Id: I1b993ad0289efe6cf499189e3d49646ea292e5f0 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Update CMakeLists.txtPaul Olav Tvete2020-05-191-0/+40
| | | | | | Change-Id: Ib66061d8f25f933d0ad2b9e65b0965fd12cf7d0e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix assert in tst_QQuickRenderControlEskil Abrahamsen Blomfeldt2020-05-191-2/+1
| | | | | | | We should not call device functions after resetting them. Change-Id: I0470792457eff070ba3aeb767f5f5be622ebda42 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Fuzzing: Add fuzz target for QQmlComponent::create()Robert Loehning2020-05-192-0/+62
| | | | | | | Pick-to: 5.15 Task-number: QTBUG-71580 Change-Id: I160a0c73bbd3ee593228c95f2d6315c4964fdca0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Lancelot test for ShaderEffect atlas texturesPaul Olav Tvete2020-05-1913-0/+107
| | | | | | | Task-number: QTBUG-83975 Pick-to: 5.15 Change-Id: Icfff2aa9172bf10a1918be5364f27ed6faf94575 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* QV4Engine: Fix type conversionFabian Kosmale2020-05-192-0/+27
| | | | | | | | | | When converting JS arrays to sequence<T> type, check first for the existence of a QJSValue -> T converter function. This restores the behavior from Qt <= 5.14. Amends ecdb4ed275a0869dc668d73d774735575d43a0a3 Fixes: QTBUG-84104 Change-Id: I14c86ab37e34a3c8cff072574d4b90fe9e558535 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Clean up registration of QEasingCurveUlf Hermann2020-05-191-1/+1
| | | | | | | | | | | | | | | | We don't need to register the Type enum for both QtQml and QtQuick. QtQml is enough. Removing this makes the whole manual value type registration obsolete. Furthermore, we want QEasingCurve as QML_FOREIGN as we have several classes with properties of that type. To keep it nice and tidy, we make the uppercase-named enum holder class a separate type. Unfortunately, the Type enums differ in one entry: QEasingCurve::BezierSpline is called Easing.Bezier in QML. Therefore, we need to keep the custom enum around. We can change all users in qtdeclarative to use the name from QEasingCurve, though. Change-Id: Ibbc78d8bbf8938e2a8722f8c09833a0c73394c3d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Allow using lowercase enum namesMaximilian Goldstein2020-05-193-13/+6
| | | | | | Fixes: QTBUG-83395 Change-Id: I98dd953497c6e28a1cfb5228095f05547e49b11d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Preserve access semantics in qmltypesUlf Hermann2020-05-182-0/+7
| | | | | | | | gadget types are accessed with value semantics, object types are accessed with reference semantics, and namespaces are not accessed. Change-Id: I5eb8f132d729416f28bf94e651f877fc4a9a5c77 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Make the test actually test somethingPaul Olav Tvete2020-05-181-29/+19
| | | | | | | | | | | Have some source rects that are inside the source, so the shader effect will have something to work with. Also get rid of the MouseArea, since that is completely pointless for a lancelot test. Task-number: QTBUG-83975 Pick-to: 5.15 Change-Id: I23e6eb0d2bdf05704124a5dc83816e923413c031 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Merge "Merge remote-tracking branch 'origin/5.15' into dev"Liang Qi2020-05-182-0/+19
|\
| * Merge remote-tracking branch 'origin/5.15' into devLiang Qi2020-05-152-0/+19
| |\ | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/quick/qquicktextedit/BLACKLIST Change-Id: If1868d27ea40fdc206971c2f7a24e91c5e62b1bf
| | * Merge remote-tracking branch 'origin/5.15.0' into 5.15Qt Forward Merge Bot2020-05-143-0/+62
| | |\ | | | | | | | | | | | | Change-Id: I1f653fa9586e7d1e9c23acffba4512cfe9f951b8
| | | * Merge remote-tracking branch 'origin/5.14' into 5.15.0Liang Qi2020-04-222-1/+158
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/imports/labsmodels/qqmltablemodel.cpp tests/auto/qml/qqmltablemodel/tst_qqmltablemodel.cpp This follows edc8512580fa16892dc13034e93300cc6a2bba59. Change-Id: I42d1a977d33043045558118948db9151d03950c7
| | | * | QQuickRepeater: Fix interaction with PackageFabian Kosmale2020-04-222-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amends 3b806a18cc665b5ae0e12d45fe170bfc3f00352a. Eric's change tried to tackle the issue by making the PartModel more well-behaved. However, this still left some issues, as exhibited by the linked bug. This time, we simply make the repeater more robust, and setup d->deletables if it's not done yet. Pick-to: 5.15 Fixes: QTBUG-71964 Change-Id: I58c80c84f73fddaea5d6030f92ffff219ecf2b71 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> (cherry picked from commit 28a31148ca02dbb530fd92dfafbcf71c64af4b70)
| | | * | Merge remote-tracking branch 'origin/5.15' into 5.15.0Qt Forward Merge Bot2020-04-216-0/+106
| | | |\ \ | | | | | | | | | | | | | | | | | | Change-Id: Iba61fff386b0d76e8d3dbb63e5b86ed8ee79d151
| | | * | | V4: Avoid integer overflow in DataViewCtorFabian Kosmale2020-04-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-83667 Change-Id: Ia54510bd7c20fb232b117c1ea0fa5facfcd1a9a5 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
| | * | | | Blacklist a failing hAlignVisual in SLESTony Sarajärvi2020-05-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-76719 Change-Id: I034f15471e64a272f365cfe636d757478ab418d8 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
* | | | | | Remove openglinfo autotestLaszlo Agocs2020-05-176-137/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...because OpenGLInfo itself is deprecated and was replaced by GraphicsInfo back in Qt 5.8. Change-Id: Icfeff14cc404d9b82da07991c77fc4a7a0869883 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | | | Compile with latest qtbase devFabian Kosmale2020-05-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Get rid of QTextCodec in QQmlError and qcoloroutput.cpp and etc. Change-Id: I26ab81536d12eb0587d5d9ae747f6a379a4d0b12 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | | | Remove OpenGL usage in AnimatedSprite autotestLaszlo Agocs2020-05-161-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was never really necessary: the value is queriable from the rendercontext. Change-Id: Ibb7cf1b86a59c9dbf14476f2e798a29cabf6282f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | | | Add lancelot test for ShaderEffect on layerPaul Olav Tvete2020-05-156-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-83975 Pick-to: 5.15 Change-Id: I40e3836205c62f52a80925384070175a7bcb5856 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | | | | Lancelot tests for ShaderEffect uniform bindingsPaul Olav Tvete2020-05-157-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test that properties are bound to shader uniforms. Three ways of setting the property: initial value, PropertyAnimation, and UniformAnimator. Task-number: QTBUG-83975 Pick-to: 5.15 Change-Id: I61518dc1bf680d0d28dd0171c5dcf8b4a6b3695e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | | | | Add lancelot test for ShaderEffect blendingPaul Olav Tvete2020-05-156-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-83975 Pick-to: 5.15 Change-Id: I719fd206b8fa8ee29958eecbac9d618c7850ed80 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | | | | Autotests: use std::atomic in incubateWhile()Shawn Rutledge2020-05-154-25/+25
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Followup to a9bf6e652aa99784343c94b0181c9443205e2a82 Change-Id: Ic010f2610177f93f8fc4e2312d6736c96390e585 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | | Add -viewonly option to qmlscenegrabberPaul Olav Tvete2020-05-141-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual cherry pick of qtquick3d 1148116b8549982cc3113174b01987a00a730cf6 Change-Id: I8191256a238b733f62d75261896354a11b5430d7 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | | | Improve polish loop detection and diagnosticsJan Arve Sæther2020-05-141-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing warning was pretty much useless since it would only warn after having looped INT_MAX times. In addition, it didn't actually detect if polish() was called from within updatePolish(). Instead, the counting is changed to be strictly more correct: The counter is now only increased when polish() is called within the updatePolish(). It will reset back to 1 if that does not occur. Effectively, the counter will reflect how many consecutive polish loops we have processed. This patch will show diagnostics after having reached 1000 consecutive polish loops. It will only warn for the next 5 items in order to not be too verbose...(most likely they will be the same 5 items). If the counter reaches 100,000, we break out of the loop: This might be important for e.g. CI runs so that the process can actually terminate in order to get some useful diagnostics. Note that the item that calls polish() within updatePolish() doesn't have to be the same item as updatePolish() was called on. We also want to track these since there might be several items working in tandem to create the loop. With this change it will now give the following output: main.qml:10:5: QML Row: possible QQuickItem::polish() loop main.qml:10:5: QML Row: Row called polish() inside updatePolish() of Row (This is when Row called polish() from within its own updatePolish()) Fixes: QTBUG-40220 Task-number: QTBUG-83856 Pick-to: 5.12 Pick-to: 5.15 Change-Id: Ib8a7242908082c70d8cf71efbbe1fa148dbfada0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | | Lancelot: update graphics backend detectionPaul Olav Tvete2020-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I20c19477b04dd99bfa219bf9e2f3d9cd93abdcb5 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | | | qquickwindow test: Fix incorrect expectationLaszlo Agocs2020-05-111-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It works correctly in Qt 6. Previously running with the software backend (which is exercised by the QEMU-based CI configurations) had a bug in postJob(). A side effect of the RHI-related changes is that this is corrected so the QEXPECT_FAIL is no longer necessary. Change-Id: I6167856f1df6689707a1934a71bf668d0b051aec Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | | | Use QRhi by defaultLaszlo Agocs2020-05-114-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flip it over and instead of having to do QSG_RHI=1 to enable, one can now do QSG_NO_RHI=1 to disable. (note that follow up patches are expected to break the direct GL path, so QSG_NO_RHI will likely not be useful in practice) Also clean up the unused rhi flag in the struct that is used by the C++ APIs like QQuickWindow::setSceneGraphBackend(). Disables the qquickwidget autotest since QQuickWidget is not functional at the moment. Also disables the 'zoom' case in the qqmlpreview test. No idea why the external process is crashing there. (and the infrastructure does not exactly make it easy to debug anything, hence postponing any further investigation) Task-number: QTBUG-79268 Change-Id: Ia877ebe039a1d98ce661add82a6822a313fd10e5 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | | | Disable QQuickWidget case in qquickshortcut testLaszlo Agocs2020-05-111-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also rename the test case, while we are at it. Change-Id: Iaf500ee495c0406c70b1ec2c9f04a2692a85bd1e Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* | | | | Fix typo in lancelot testPaul Olav Tvete2020-05-112-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I749f36aa4a344438061087909bf5a08e29bdcebd Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* | | | | Temporarily disable qquickshadereffect autotestLaszlo Agocs2020-05-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Blocks CI with RHI (in developer builds). Needs a full port at some point, or it will have to be removed. The CMakeLists.txt is not updated because the test in question is not present there in the first place. (some goes for some other tests) Change-Id: Ib16a7ee1ab307eb9e52865c2d97415a2c0bdf9e5 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
* | | | | Avoid grabbing non-exposed window in qquickimage autotestLaszlo Agocs2020-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It uncovers a valid issue (that seems to affect Vulkan only, which is pretty odd), but that test is not the right place to exercise this. Just do like every other case in the same test does: show the window. The non-exposed window grab issue will be handled separately. Change-Id: Id2c1ff46251adf058dd26a30dedd30ecd27e4aa6 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | | Fix up graphics API logic in qquickimage testLaszlo Agocs2020-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib78170a9d40f7c159036e65bbe5944fc3deb928e Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* | | | | Add missing OpenGL check in qquickitemlayer/layerEffectLaszlo Agocs2020-05-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other ShaderEffect-related cases in the same test already test for using direct OpenGL. Add the same check to the layerEffect case too. The proper migration (away from the inline GLSL code) is left as a future exercise. Change-Id: I4b5eb054709fd60adda8f1d2d8f310eb3bddf960 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | | | rendercontrol autotest: skip D3D on Win7Laszlo Agocs2020-05-111-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike other Qt Quick tests, this one has its own logic for exercising the available QRhi backends (so similar to what tst_qrhi does in qtbase). Adjust it according to our current understanding (that we cannot use D3D in the Windows 7 VM of the CI). Change-Id: Ic6d78219c7bd6b8fbbefe363534b8915e64482df Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | | | Remove Screen.orientationUpdateMaskShawn Rutledge2020-05-082-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now Screen.orientation works by default rather than filtering by default. Task-number: QTBUG-83055 Change-Id: I0f49499ec25ceeebf19bc8ef1adc259023f1bc75 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>