summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add ; to Q_UNUSEDLars Schmertmann2020-06-263-4/+4
| | | | | | | | | This is required to remove the ; from the macro with Qt 6. Task-number: QTBUG-82978 Change-Id: I66f620431011d02cb1542e8ad613dadd28fdd843 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Use QList instead of QVectorJarek Kobus2020-06-255-21/+21
| | | | | | | Task-number: QTBUG-84469 Change-Id: I4dc064b70adb054ca4add2dd662e7227255ff970 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Convert uses of QTime as a timer to QElapsedTimerEdward Welbourne2019-06-121-3/+3
| | | | | Change-Id: I6050b5269304ac6941d3a9d057c91d439f46b63c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix deprecation warningsFriedemann Kleint2019-02-111-2/+2
| | | | | | | | | | | | utils/utils.cpp:87:43: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] utils/utils.cpp:139:58: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] engine/axisrendercache.cpp:204:50: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] volumetrictest.cpp:384:32: warning: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes [-Wdeprecated-declarations] volumetrictest.cpp:538:32: warning: ‘int QImage::byteCount() const’ is deprecated: Use sizeInBytes [-Wdeprecated-declarations] Change-Id: I59d0ce39584b11ec239cbdadf067c30cf37ca05a Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix build: pow() is in math.hv5.10.0-beta4Thiago Macieira2017-11-051-0/+1
| | | | | Change-Id: Icaa86fc7b54d4b368c0efffd14f0b2721e74f854 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Update to new QRandomGenerator APIThiago Macieira2017-11-036-61/+61
| | | | | Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix build: this example uses exceptions for some reasonv5.10.0-beta3Thiago Macieira2017-10-251-0/+1
| | | | | | | | | cumulativedistributor.cpp:128:44: error: exception handling disabled, use -fexceptions to enable throw std::runtime_error("out of range"); Change-Id: Icaa86fc7b54d4b368c0efffd14f0b2b6258fe6f5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Enable tests for boot2qtSami Nurmenniemi2017-08-1118-12/+91
| | | | | | | | | | | | The tests for boot2qt were disabled with commit 0340120d5f7940c9aebfd0f60328805227f8824d. Some of them can now be enabled since qtdeclarative fallbacks to software renderer if OpenGL is not supported. Some tests still need to be skipped if OpenGL is not supported. Task-number: QTBUG-60268 Change-Id: I8019859bc88497e08599d0b5f4981b9a3ac071f3 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Use QRandomGenerator instead of q?randThiago Macieira2017-07-046-66/+72
| | | | | Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Use qRadiansToDegrees() and qDegreesToRadians() more widelyEdward Welbourne2017-06-142-10/+7
| | | | | | | | | These document what the arithmetic is actually doing; and save us an ad-hoc use of an approximate value for pi while we're about it. Task-number: QTBUG-58083 Change-Id: I82c5502af724b33ec598c5a9da76537f93a95eac Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Disable/blacklist failing tests for boot2qtSami Nurmenniemi2017-04-282-0/+14
| | | | | | | | | Currently boot2qt is tested with QEMU and some tests fail. Disabling them for now to make it possible to enable qt5 tests for Coin. Task-number: QTBUG-60266 Change-Id: Ic6494b8a17d4bd277f04472bea9d83cb20bc3805 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-12-121-9/+27
|\ | | | | | | | | | | | | | | Conflicts: tests/auto/cpptest/q3dscene/tst_scene.cpp tests/auto/qmltest/scene3d/tst_scene.qml Change-Id: I0aef5e7d8fe202e7f4c7565922938d1627ab8124
| * Fixed some autotestsv5.8.0-beta1Tomi Korpipää2016-09-273-17/+76
| | | | | | | | | | | | | | | | | | Some compare types seems to have worked incorrectly and/or differently in previous Qt versions. Made changes to autotests accordingly. Change-Id: Ia2c5da59ebec76718266a8009bbffe060ae32470 Task-number: QTBUG-55910 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Allow light position modification by userTomi Korpipää2016-11-182-8/+12
| | | | | | | | | | | | Change-Id: I7efd56754bae16990fd11081493da0a37698f76b Task-number: QTRD-1803 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Fixed inability to set subviewportsTomi Korpipää2016-11-143-14/+30
|/ | | | | | Change-Id: I7966292cca04fe990a2fa6a5b4233bf89e77c553 Task-number: QTRD-1807 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add manual tests to releasesMiikka Heikkinen2016-01-151-2/+0
| | | | | | Change-Id: I52f80d7375502a9a8dd08238745a142809538d31 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Copyright file update to GPLMiikka Heikkinen2016-01-1297-873/+1649
| | | | | Change-Id: Ib264fe1f2cd1589e2ba1ef2dc7d8f3951e125708 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* Remove some manual test appsMiikka Heikkinen2016-01-12163-49031/+1
| | | | | | | | | | | Removed - Kinectsurface - Has 3rd party code. - qmlcamera - Ugly mess and kinda pointless. - qmlmultiwindow - Test is not relevant and is buggy. - spectrum - Has 3rd party code. Change-Id: Ic28ffddf9e45f51a5320d4ebd0e2b7b373452cb7 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* Fix issues with COIN buildsMiikka Heikkinen2015-10-22246-181/+361
| | | | | | | | | | | | -Fix miscellaneous compile errors -Move manual tests to manual folder and enable export of autotests -Added widgets requirement -Fixed autotests -Fixed renderer and controller synchronization in QML case -Treat fallback Mesa as ES2 similar to setting AA_UseSoftwareOpenGL Change-Id: If6619733725d079e339bef16262e5ea1450ab20f Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
* Update license headersMiikka Heikkinen2015-10-20121-1331/+1694
| | | | | Change-Id: I0581aefcf9dabc64b05eb8c97b5b92da1fb26299 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Data member initialization removed from header.Mika Salmela2015-07-032-7/+9
| | | | | Change-Id: I12ff4abfe54a54831f833a5e23a8367dd5792210 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fix building against 5.6Miikka Heikkinen2015-06-1711-21/+21
| | | | | | | | Apparently Qt modules are now required to use Q_SIGNALS and Q_SLOTS macros instead of 'signals' and 'slots' in headers. Change-Id: I4140b1fff4386d74bb371176919234366965e887 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Copyright header changesMika Salmela2015-04-14123-365/+365
| | | | | | | Copyright header changes for 5.5. Change-Id: I0361cfe1ebdb28955cb927700f14cf7b72694421 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Dust and H2 to galaxyMika Salmela2014-12-124-6/+158
| | | | | Change-Id: I3bd3357fe73fbed68498311e0fd2a969980369a3 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Write fps to file.Mika Salmela2014-12-083-5/+39
| | | | | Change-Id: I303c243b25da0003ca86e5085b913f54a14dc86f Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fixes to galaxy.Mika Salmela2014-12-083-28/+58
| | | | | Change-Id: I41a666177526db8563eee5799dee57e9994800dc Signed-off-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Improve button width setting on perf tester.Mika Salmela2014-12-041-4/+4
| | | | | Change-Id: I1106cfbfca839d6af09a6cc505e2630ab2b9dc49 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Galaxy improvement.Mika Salmela2014-12-043-51/+48
| | | | | Change-Id: I87ed53c41929e13e8d77236726b30dc5d89df077 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Initial version of Galaxy.Mika Salmela2014-12-048-0/+907
| | | | | Change-Id: I29898bed342022290c8c8a6c4459969ffba3df56 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fix WinRT issues.Miikka Heikkinen2014-11-191-2/+2
| | | | | | | | | | Primary fix is to not use shared context in qml with WinRT, as that causes black screen. Also removed widget apps from build in WinRT. Change-Id: Id65ce90dbeb80442194ab838952e8cadc91135a6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Remove cpp autotests from android builds.Miikka Heikkinen2014-11-171-1/+1
| | | | | Change-Id: I1b80c618af7739ec42cac3cccdfc948e979c52d9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Change copyright headers.Miikka Heikkinen2014-11-07114-798/+798
| | | | | | Change-Id: I453438fee92f18c983c1bef04c68b24a7ff72cf9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Fixed Valgrind reported issues in cpp testsMiikka Heikkinen2014-11-069-87/+116
| | | | | Change-Id: I284832fc697e0ac6ef1ba1bb857892a10cbcd8fd Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Qml perf data generation on cppMika Salmela2014-11-036-30/+104
| | | | | Change-Id: If770c96ff84e49a747c4355e56bff002556cd659 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Allow small delay in scene test for viewport resizeMiikka Heikkinen2014-10-311-1/+1
| | | | | | | | | | On linux, there seems to be some asynchronous activity related to window resizing, since calling processEvents() is not enough to ensure viewport size gets updated in subViews test. Use QTRY_COMPARE to allow for small delay. Change-Id: Idae04ff9436c819ef150caa57f6fa988e4011746 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix crash when initializing QCustom3DLabel out of context.Miikka Heikkinen2014-10-291-13/+9
| | | | | | Task-number: QTRD-3391 Change-Id: I5c2f2b674e50e7d39bc9355ebc9bcf05f22d5a39 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Support for dynamic opengl builds.Miikka Heikkinen2014-10-292-4/+16
| | | | | | Task-number: QTRD-3392 Change-Id: I786bbf5ee9252b92d43d02d6b88ed9b986b4a5eb Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Make build check for existence of quick module.Miikka Heikkinen2014-10-242-22/+31
| | | | | Change-Id: Icd04b72bb7bdbf34c73e6f27c90674fda4fc4cc2 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Autotests ES2 fix Tomi Korpipää2014-10-233-18/+45
| | | | | | | | | Some properties have different default values, or cannot be changed at all on ES2. Change-Id: Ieb3951f5692a645eafab492819ce18de19134335 Change-Id: Ieb3951f5692a645eafab492819ce18de19134335 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added C++ autotests for custom items, labels and volumes. Tomi Korpipää2014-10-237-1/+518
| | | | | | | Task-number: QTRD-3368 Change-Id: Ia6199669b0b70190de5a5d057c596093a051c1a9 Change-Id: Ia6199669b0b70190de5a5d057c596093a051c1a9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added C++ autotests for input Tomi Korpipää2014-10-225-1/+234
| | | | | | | | Task-number: QTRD-3368 Change-Id: I0ca32bcaf4025cac24ece2e80fab6a2eee3562b0 Change-Id: I0ca32bcaf4025cac24ece2e80fab6a2eee3562b0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Added C++ autotests for theme Tomi Korpipää2014-10-223-1/+226
| | | | | | | Task-number: QTRD-3368 Change-Id: I369d8cad75f02a0cc585edad57c3ddcd8ef221d9 Change-Id: I369d8cad75f02a0cc585edad57c3ddcd8ef221d9 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added C++ autotests for scene, light and camera Tomi Korpipää2014-10-227-1/+469
| | | | | | | Task-number: QTRD-3368 Change-Id: I6cd7a73477ac34d025c9bdcd7b775abab7d1426c Change-Id: I6cd7a73477ac34d025c9bdcd7b775abab7d1426c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added autotests for C++ axes Tomi Korpipää2014-10-2210-1/+430
| | | | | | | Task-number: QTRD-3368 Change-Id: I79f49ba839f191b64206f38763b2afff167757b7 Change-Id: I79f49ba839f191b64206f38763b2afff167757b7 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
* Added C++ autotests for seriesTomi Korpipää2014-10-2110-4/+318
| | | | | | | | | Also fixed a bug found in testing, and added tests for optional constructors for already tested classes. Task-number: QTRD-3368 Change-Id: I2214f28e2c5069ecab422fc6817acb2f0c0b192b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added C++ autotests for proxies.Tomi Korpipää2014-10-2013-21/+461
| | | | | | Task-number: QTRD-3368 Change-Id: I9412afd4c6e79835ce8ee9587736e189d4f2fbf6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added skeletons for C++ graph proxies and seriesTomi Korpipää2014-10-1721-1/+941
| | | | | | Task-number: QTRD-3368 Change-Id: I85680bfca28e5ed1039526310fdf89717b1e84ae Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added invalid value tests for QML autotestsTomi Korpipää2014-10-179-0/+159
| | | | | | | | | Plus fixed a QML documentation bug, and added a missing inheritance to docs. Task-number: QTRD-3383 Change-Id: I1f7c56c49b829fee2cfd0731bbcc7e248a06a0c0 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix memory leaks in volumetrictest app.Miikka Heikkinen2014-10-171-0/+6
| | | | | | Change-Id: I742a5a5d7c69ef73ba469bfa4bac49a71b8f578a Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Test for QML proxiesTomi Korpipää2014-10-165-6/+671
| | | | | | | | Also added missing default values to some docs. Task-number: QTRD-3368 Change-Id: I98940a80d6edfe60801c6b2606307b3ec3ab8c39 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>