aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Port shader effect autotest to RHIPaul Olav Tvete2020-06-0319-194/+138
| | | | | | | | | | The lookThroughShaderCode test function had to be removed, since it does not make sense when the shader code may not be available. Added testConnection() to verify that connections are made. Fixes: QTBUG-84123 Change-Id: I33594367bea97de9ef0d54711b105a33c8a57fa8 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Fix handling of destroy-show and re-enable the zoom test for qmlpreviewLaszlo Agocs2020-06-032-3/+36
| | | | | | Fixes: QTBUG-84059 Change-Id: Id70c043f96e9525a5a6053efbf99c5ea3408da65 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Remove layer and dist.field glyph cache OpenGL versionsLaszlo Agocs2020-06-021-1/+0
| | | | | | Task-number: QTBUG-79268 Change-Id: I16123a8a49d17e3ffdd5cbcfbebcd8bfa46e648c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Remove CustomParticleEirik Aavitsland2020-06-028-280/+0
| | | | | | | | | The implementation is intertwined with the direct GL path and not really portable to RHI. Fixes: QTBUG-78574 Change-Id: I6ac8707544c19a24661f07e0e6d2fc405e49cbff Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Follow QRhi create-destroy API updateLaszlo Agocs2020-06-021-3/+3
| | | | | Change-Id: I0bc2cbce373febcb9073f15067eebbc1723462ba Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Fix test to not depend on internal roundingAllan Sandfeld Jensen2020-05-291-1/+6
| | | | | | Pick-to: 5.15 Change-Id: I3c66cb52b435a891d88a5e1c9d1db155d63e2481 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* CMake: Don't install .qmltypes for Qt tests, examples and toolsAlexandru Croitor2020-05-293-3/+0
| | | | | | | | | | | that don't have an explicit QT_QML_MODULE_INSTALL_DIR path specified. We don't want to pollute the Qt qml import path with these files. Task-number: QTBUG-84403 Change-Id: I768267e0e79daa8090d882c301648cce14e1a809 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* CMake: Regenerate qtdeclarative/testsAlexandru Croitor2020-05-2915-24/+65
| | | | | | | | | | | | | Includes: - new api calls - some new dependencies - some TARGET_DESCRIPTION - some additional tool directory exclusion when cross-compiling (qmlplugindump) - some missing add_subdirectory calls Change-Id: Iea43e45b94f37367ffc1d8dd6ce0ff1021a31b1a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* | | | | | 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>
* | | | | 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>
* | | | | 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>
* | | | | 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>
* | | | | Remove direct OpenGL test case from rendercontrol autotestLaszlo Agocs2020-05-071-116/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leave only the RHI compatible ones. Change-Id: Idfac1fad24f81131208de8baa1659858767c2f3b Reviewed-by: Christian Strømme <christian.stromme@qt.io>
* | | | | TableView: allow negative spacingRichard Moe Gustavsen2020-05-071-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no apparent reason why negative spacing should not be allowed. And in fact, you can use negative spacing to eliminate double edges in the grid when the delegate is e.g a rectangle with a border. Fixes: QTBUG-83956 Pick-to: 5.15 Change-Id: I3be9d58ac8c43142e26e75165274e41872e878f4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | | | | Fix qmllint crashMaximilian Goldstein2020-05-062-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: QTBUG-83915 Change-Id: I26731ebcec6be46602b6acc7562c65b1c9f3e43a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | | qmllint: warn when passing a directory to -i optionMitch Curtis2020-05-061-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It should be a file. Change-Id: I52f4ebcf8bdd8ddd1fedd66ceffe9a060139c1d9 Fixes: QTBUG-83861 Pick-to: 5.15 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* | | | | Implement URLSearchParamsMaximilian Goldstein2020-05-062-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements URLSearchParams (https://url.spec.whatwg.org/#urlsearchparams), completing our implementation of the URL object. Still needs the for..of iterator to get implemented. Change-Id: Iad33ed2f3fe0b2598ca2b0b21a4743f5f7dc19fd Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>