summaryrefslogtreecommitdiff
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-04-232-1/+46
|\ | | | | | | Change-Id: Ib0c08186ea28decda3b39baeb323a0c84bdb259e
| * Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-04-202-1/+46
| |\ | | | | | | | | | Change-Id: I722db64ed6f5e057f871be1c165c5d1495113f39
| | * Fix thisObject() of QScriptable argument for String(), etcAlexandra Cherdantseva2019-04-172-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `String(object)` is evaluated, and `object` is a QObject or some custom object with native prototype, then `object.toString()` will be called with incorrect `this`. This also applies for Number(), Boolean() and other built-in constructors. Change-Id: I0219f0e119c1e29d80e4c0f856421352715e9e6e Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
* | | Use QDateTime::fromMSecsSinceEpoch(0) to get the epochEdward Welbourne2019-04-091-1/+1
|/ / | | | | | | | | | | | | | | ... rather than hand-constructing it. This saves constructing two intermediate objects and gets the same result. Change-Id: Iaeadb92263b063c4c96c8d8ca151d7a2d99aa5e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* | Fix some deprecation warningsv5.13.0-alpha1Friedemann Kleint2019-02-062-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | debugging/qscriptedit.cpp:286:39: warning: ‘int QFontMetrics::width(QChar) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] debugging/qscriptedit.cpp:309:48: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] debugging/qscriptedit.cpp:309:48: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] debugging/qscriptedit.cpp:315:49: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] debugging/qscriptedit.cpp:315:49: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] debugging/qscriptedit.cpp:318:45: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] debugging/qscriptedit.cpp:318:45: warning: ‘Background’ is deprecated: Use QPalette::Window instead [-Wdeprecated-declarations] tst_qscriptvalue.cpp:1270:45: warning: ‘T qVariantValue(const QVariant&) [with T = QObject*]’ is deprecated [-Wdeprecated-declarations] tst_qscriptenginedebugger.cpp:343:64: warning: ‘T qFindChild(const QObject*, const QString&) [with T = QLineEdit*]’ is deprecated [-Wdeprecated-declarations] tst_qscriptenginedebugger.cpp:345:75: warning: ‘T qFindChild(const QObject*, const QString&) [with T = QPlainTextEdit*]’ is deprecated [-Wdeprecated-declarations] tst_qscriptenginedebugger.cpp:354:88: warning: ‘T qFindChild(const QObject*, const QString&) [with T = QPlainTextEdit*]’ is deprecated [-Wdeprecated-declarations] tst_qscriptenginedebugger.cpp:836:33: warning: ignoring return value of ‘bool QTest::qWaitForWindowExposed(QWidget*, int)’, declared with attribute nodiscard [-Wunused-result] context2d.cpp:473:46: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations] context2d.cpp:486:46: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations] context2d.cpp:500:46: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations] context2d.cpp:627:46: warning: ‘void QPainter::setMatrix(const QMatrix&, bool)’ is deprecated: Use setTransform() instead [-Wdeprecated-declarations] tetrixboard.cpp:104:76: warning: ‘const QBrush& QPalette::background() const’ is deprecated: Use QPalette::window() instead [-Wdeprecated-declarations] tetrixboard.cpp:130:33: warning: ‘QColor QColor::light(int) const’ is deprecated: Use QColor::lighter() instead [-Wdeprecated-declarations] tetrixboard.cpp:134:32: warning: ‘QColor QColor::dark(int) const’ is deprecated: Use QColor::darker() instead [-Wdeprecated-declarations] Change-Id: I795c140c476541bba9c653effdcda0a50cbe9acd Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
* Replace use of deprecated function QTest::qWaitForWindowShownTor Arne Vestbø2018-07-181-1/+1
| | | | | Change-Id: I7d92cb2be817eccd72232aa4bc16a41286ffdb44 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Fix xml output to have valid UTF-8Jan Arve Sæther2018-06-281-1/+1
| | | | | | | | | | | | | Some datatags had characters outside the ASCII range. (This is discouraged). And when dumping the datatag to xml output we dumped the binary content of the data tag without encoding it from latin1 to utf-8. This meant that all characters in the range 0x80-0xff produced invalid utf-8 sequences. The solution is to encode the data tag as UTF-8. Change-Id: Iaaecc992b756836845bfb98429f20f1fb5e2b291 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
* Remove dead test - compilerwarningsLiang Qi2018-06-221-43/+0
| | | | | | | A follow-up of 9d078c8f147ea875e862360b0d7480201fbbcff7 in qtqa repo. Change-Id: I9e0a0564dabd468affd9fb5b5ac216eb54303dab Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Add binary compatibility files for 5.11 for QtScriptMilla Pohjanheimo2018-06-052-0/+9311
| | | | | | | Binary compatibility files for bic test added. Change-Id: Iffb27b08eddbccfb8519f1b4f4881ead5737a56a Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-1831-493/+9659
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I77f29cac3182808e0b9601f3415c9740b8f0fa88
| * Fix license headersJani Heikkinen2018-01-1529-493/+348
| | | | | | | | | | | | | | | | | | | | old header.LGPL21 was used in some src and test files. Replace ones in src/ with correct header.LGPL one and ones in tests/ with correct header.GLP-EXCEPT one. Also add correct license files and remove unnecessary ones Change-Id: Ifc7bb0f25bd9df652ddafe0faceaebd52b495bef Reviewed-by: Liang Qi <liang.qi@qt.io>
| * Add binary compatibility files for QtScript for 5.10Milla Pohjanheimo2017-12-142-0/+9311
| | | | | | | | | | | | | | Added files to test binary compatibility for 5.10 content. Change-Id: Ief15330d06edaeca49b57fed5ff3eb43478248e4 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-11-202-0/+13
|\ \ | |/ | | | | Change-Id: I9c2e72efdbd5fa852aff22a3070ac72f092fb880
| * Blacklist and skip failing tests for Boot2Qt / 64 bit armv5.9.35.9.3Sami Nurmenniemi2017-10-202-0/+13
| | | | | | | | | | | | Task-number: QTBUG-60263 Change-Id: I1848a0a4d5927b114400bc1646e1a676562cbf46 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
* | Fix test checking QVector<int> not being registeredFrederik Gladhorn2017-10-041-8/+10
|/ | | | | | | | | | | In qtbase 2b1ab81edaf19042d11b4ac1836f527c8590ee45 the basic types registered by DBus got extended to QVector, in addition to QList. This broke the assumption in the QObject test that QVector<int> wasn't registered yet. Use a custom type for this check instead. Task-number: QTBUG-63432 Change-Id: Ib6a405a6bcb2ee2c294b3260b89c567712c49a63 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Binary compatibility files for qtscript (5.8.0)5.8Milla Pohjanheimo2017-02-062-0/+8639
| | | | | | | Added binary compatibility files for qtscript Change-Id: I6fa8f9537b43ec31fcd3ad962a0873510860870e Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freeMarc Mutz2016-09-232-9/+8
| | | | | | Change-Id: I13a4ce5c268da2b97cbae6612d240398b17186ef Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.15.7.1Liang Qi2016-09-172-0/+8025
|\ | | | | | | Change-Id: I0bfcc2e93ff7a4f7faf85cd0dbef8d5310ad9dcc
| * BC data files for QtScript for Qt 5.6Milla Pohjanheimo2016-09-142-0/+8025
| | | | | | | | | | | | | | Added binary compatibility data files for tst_bic test Change-Id: I53825b45c8e833f460cc4271da36b09dc3aad2d0 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* | BC data files added for QtScript (5.7)Milla Pohjanheimo2016-09-152-0/+8589
| | | | | | | | | | | | | | | | Added the generated data files for the binary compatibility tests for QtScript for Qt 5.7. Change-Id: I7ba1e7729b75751cf15e58a6e4be42c3ad1efd8c Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* | purge symbian vestigesOswald Buddenhagen2016-04-063-19/+0
|/ | | | | Change-Id: I3e66ce25ea21aa846b44b6f99b8afbe0959a6526 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Purge spurious execute permissionsEdward Welbourne2015-09-2985-0/+0
| | | | | | | JavaScript and README files are not for running. Change-Id: I0a07b58f5ca28e8ef02421c5f9ca04071f15f9c6 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Remove the old headersclean unit testv5.5.0-beta1Thiago Macieira2015-03-182-4/+1
| | | | | | | We have configure -headersclean now Change-Id: Iadc179632e128cb0d6fd72c0b1541371b032e4d4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Add verbose messages date conversion tests of tst_QScriptEngine.v5.5.0-alpha1Friedemann Kleint2015-03-111-4/+31
| | | | | | Task-number: QTBUG-44885 Change-Id: Iac155df75cba2402919f30dce2fa794025f396ce Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5Frederik Gladhorn2015-02-2414-14184/+36555
|\
| * Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-02-2014-14184/+36555
| |\ | | | | | | | | | | | | | | | | | | Conflicts: LICENSE.GPLv2 Change-Id: Ibb3f412a7b9d898910f6f3857e90ecbc86677dab
| | * bic: Add/Replace 5.{0.1,2,3,4}.0 bic data for linux-gcc-amd64Sergio Ahumada2015-02-1314-14184/+36555
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the ia32 data since there are no linux x86 machines in the CI system (which makes the data useless from an automated testing point of view) and most people use x64 these days anyway. Change-Id: I2f4f1ebfe48b13ba65aef65c579a7fb3c0d9e969 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* | | Fixed license headersJani Heikkinen2015-02-171-1/+1
|/ / | | | | | | | | Change-Id: I99e62a707fe649403214436a4b9aad8fd82015ee Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.4' into devFrederik Gladhorn2015-02-132-3/+1
|\ \ | |/ | | | | Change-Id: Ic32f5bd17782285305aaa01694f1a78851b882eb
| * Autotest: Use QFINDTESTDATA to find test dataRainer Keller2015-01-192-3/+1
| | | | | | | | | | Change-Id: If33c0f93576b1a3b4ce395156a51df564156deb4 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Update copyright headersJani Heikkinen2015-02-1229-218/+210
|/ | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: Iffc10aac2cdaf7c7ceba051ec447f15758c3d8e0 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Skip constantly failing v8 test on WindowsKalle Viironen2014-09-221-0/+1
| | | | | | | | tst_qscriptv8testsuite::smi-negative-zero() fails constantly on Windows 8. QTBUG-41321 Change-Id: I53538f281f725b215fcf6c2f485953341f938946 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Blacklist windows 64 bit failures for mingw, tooKai Koehne2014-09-171-0/+4
| | | | | | Task-number: QTBUG-32829 Change-Id: I9e7d9f5b8f5622eaf66fc820566ae94224ba3ae1 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Tests: Blacklist Math.sqrt(-0) for MinGWKai Koehne2014-09-171-0/+2
| | | | | | | | | MinGW's sqrt(-0.) returns NaN instead of 0.0. Upstream bug https://sourceforge.net/p/mingw-w64/bugs/425/ Change-Id: I0fc16c4e53ea5b4b0f799a4a9cee4052f8b8f293 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Update license headers and add new license filesAntti Kokko2014-08-2428-531/+307
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I8b229a6405aefe7951ad0d13d6432d01a4ec8263 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Fix some typosSergio Ahumada2014-03-041-2/+2
| | | | | Change-Id: Idb1e503afa74efe167d68e6fb993f50138546c51 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Mark qscriptjstestsuite as insignificant on Windows.Friedemann Kleint2014-02-051-0/+1
| | | | | | | Task-number: QTBUG-36632 Change-Id: Ida2f4665b25f5343e5abe73b135798ff3546d4d6 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Autotest: Fix unexpected rounding of floating point in date testsThiago Macieira2013-09-281-2/+2
| | | | | | | | | | | | QString("new Date(%0)").arg(1380318500 * 1000.0) expands to "new Date(1.38032e+12)". That's an unnecessary rounding and cuts off interesting bits out of the date. It took me quite a while debugging QScriptEngine trying to find out why the time_t and the JS Date internal numbers were different. Change-Id: Id880f3f11edd0af07e1726eac0242d4a9625c368 Reviewed-by: John Layt <jlayt@kde.org>
* Revert "Skip failing qscriptengine tests on Windows."Thiago Macieira2013-09-281-6/+0
| | | | | | | | | | This reverts commit eff4a0f3fca2e22d4be888cdd7953e1c2ab8c918. That commit disabled a test that had a legitimate failure, caused by a QDateTime regression. Said regression was fixed by qtbase commit 475cbed2446d0e3595e7b8ab71dcbc1ae5f59bcf. Change-Id: I1212dc8414d5a0d8d87bbe2e2a667475fd30414c Reviewed-by: John Layt <jlayt@kde.org>
* Skip failing qscriptengine tests on Windows.v5.2.0-alpha1Mitch Curtis2013-09-241-0/+6
| | | | | | | Task-number: QTBUG-33622 Change-Id: Id719eadf3caa5ed34850ae189652f26eed7a6aea Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Revert "Don't remove milliseconds now that toString() includes them."Mitch Curtis2013-09-241-0/+2
| | | | | | | | | This reverts commit 37ec5822522baaa5b6e316103477d6da7e6d6a9c, as 15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c was also reverted with: https://codereview.qt-project.org/#change,65560 Change-Id: I73bd91e3ac97384db27107051faead7a8cad3d91 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Merge remote-tracking branch 'origin/stable' into devSergio Ahumada2013-09-132-1/+15
|\ | | | | | | Change-Id: Ia10bb1e8b5fa8bb93e76bf2e295df5c10336e582
| * EXPECT_FAIL tests for MSVC 64 bit in qscriptjstestsuite.old/5.1Friedemann Kleint2013-09-122-1/+15
| | | | | | | | | | | | | | | | | | | | Introduce compiler defines for 32/64 bit and adapt the text file. Task-number: QTBUG-32829 Change-Id: I9cdbe5b306264858953e2c710b48300f5690e7db Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-08-271-2/+0
|\ \ | |/ | | | | Change-Id: I98df818f6411c38a6ad8a8efaf6b6a0203dbb958
| * test: Fix XPASS for tst_QScriptJsTestSuite::ecma/Math(Math.pow()Sergio Ahumada2013-08-201-2/+0
| | | | | | | | | | | | | | | | This tests seem to be passing on MinGW 4.8, so removing them from the expect_fail.txt file. Change-Id: I3786d410f1e0937ddc1ceedd8ffd3c07d2619c40 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-07-112-0/+7161
|\ \ | |/ | | | | Change-Id: I4231685b78a7886928efe191aa7f09bb8a50e81e
| * test: Add 5.1.0 bic data for linux-gcc-ia32Sergio Ahumada2013-07-082-0/+7161
| | | | | | | | | | Change-Id: I6d17ba2357350199bb0f0043cc0cc741df6785b4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* | Don't remove milliseconds now that toString() includes them.Mitch Curtis2013-06-051-2/+0
|/ | | | | | | | | | | | | | This patch fixes a test failure introduced by 15da0a5af20fe6771bcb94ef8d46edbd5c8fb64c. tst_QScriptEngine::dateConversionJSQt and tst_QScriptEngine::dateConversionQtJS removed milliseconds from the JS-converted datetime, as QTime::toString() previously did not include them. Now it does, so we can remove this code. Change-Id: Iaddfc050adf8360bee776086b27de001702d221d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* List QtScriptTools as a module under test.Stephen Kelly2013-04-081-0/+1
| | | | | | | So that the expected version for it is generated. Change-Id: If414029e6cb420b33e5f36baf31ec5ef37c5c491 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Merge branch 'dev' into stableSergio Ahumada2013-03-191-0/+2
|\ | | | | | | | | | | This starts Qt 5.1 release cycle Change-Id: Ie8a79e8c58e45eab13391377dd33750ff2d98c08