summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add binary compatibility files added for 5.15 for QtScriptMilla Pohjanheimo2020-08-172-0/+10279
| | | | | | | Binary compatibility files added. Change-Id: I68f3800235b3e95561a5c6e0fa56ae4d63cd8a2b Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* tst_qscriptengine: Skip test failing with MinGWFriedemann Kleint2020-05-261-0/+5
| | | | | | | Task-number: QTBUG-74542 Change-Id: I5af144ab1b49b09d5ba7c77a115a718e797f4d24 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Use Qt::SplitBehavior in preference to QString::SplitBehaviorv5.15.0-beta4v5.15.0-beta3v5.15.0-beta2Edward Welbourne2020-03-021-1/+1
| | | | | | | | The Qt version was added in 5.14 "for use as eventual replacement for QString::SplitBehavior." Move another step closer to that goal. Change-Id: I10d928ac4368e07a52a92ef92bf501ba28d9b667 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.14' into 5.15Qt Forward Merge Bot2019-12-142-0/+10259
|\ | | | | | | Change-Id: I96856187418295b7b5ecc0bd9a66aaee650dcef2
| * Add binary compatibility files for qtscript 5.14 branchMilla Pohjanheimo2019-12-132-0/+10259
| | | | | | | | | | | | | | BC files built against 5.14.0 added. Change-Id: Ia0452543fd1864b6196f1d88e93457a468928e8c Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Avoid initializing QFlags with 0 or nullptrFriedemann Kleint2019-11-262-27/+28
| | | | | | | | | | | | | | It is being deprecated. Change-Id: I772c028967f3c986674081992f569bd7bbba81a5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Fix failing ES test for Georgian script upper-caseEdward Welbourne2019-11-011-1/+1
|/ | | | | | | | | | | | | | Unicode 11 added upper-case letters for Georgian, which didn't exist when this test was written. Consequently, the test fails now that we've updated past Unicode 11. The upstream ES test repository has commented out the test. Narrowed the test to the block on which it does work, commented on the two other characters for which it works. Fixes: QTBUG-79682 Change-Id: I8dd388317cabd62fc5d33487aeb5266d8b9b132d Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-08-132-0/+10181
|\ | | | | | | Change-Id: I32d3fdb4afe18f51df782fbd4306725c4f01b5f4
| * Binary compatibility files for Qt5.13.0 for QtScriptMilla Pohjanheimo2019-08-122-0/+10181
| | | | | | | | | | | | | | Binary compatibility files added. Change-Id: Idfe1569381b978daeb97e32295e167bc49a5544f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Remove usages of qVariantFromValueSona Kurazyan2019-06-285-44/+44
| | | | | | | | | | | | Task-number: QTBUG-76491 Change-Id: Iabb97fe7cb168a421b690bc71e826e1b90b955f9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
* | Remove usages of deprecated APIs from QDateTimeSona Kurazyan2019-06-271-4/+4
| | | | | | | | | | | | | | | | | | Replaced the deprecated QDateTime::toTime_t() with QDateTime::toSecsSinceEpoch(). Task-number: QTBUG-76491 Change-Id: If5ae11025e083f37b1d5c4b10d45de735ec0f84c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | tst_QScriptEngine: replace QLinkedList with std::listMarc Mutz2019-06-111-10/+9
| | | | | | | | | | | | | | QLinkedList is going to be deprecated. Change-Id: Id31883f3d491534679d08044671e7d29d6794ba5 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | 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-1840-646/+9767
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I77f29cac3182808e0b9601f3415c9740b8f0fa88
| * Fix license headersJani Heikkinen2018-01-1538-646/+456
| | | | | | | | | | | | | | | | | | | | 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.3Sami Nurmenniemi2017-10-202-0/+13
| | | | | | | | | | | | Task-number: QTBUG-60263 Change-Id: I1848a0a4d5927b114400bc1646e1a676562cbf46 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
* | Merge remote-tracking branch 'origin/5.10' into devLiang Qi2017-10-182-0/+2
|\| | | | | | | Change-Id: Idebaee1835329337ee03e27e9499b951a5cdb907
| * Fix missing license informationKai Koehne2017-08-292-0/+2
| | | | | | | | | | | | | | | | | | | | | | Fix warnings of qtattributionscanner: File ./tests/benchmarks/script/sunspider/tests/qt_attribution.json: Missing mandatory property 'License'. File ./tests/benchmarks/script/v8/tests/qt_attribution.json: Missing mandatory property 'License'. Change-Id: I0ab99b62d8abfd333b2208afd611d494f4e3ed5d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@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>
* Document third party code in tests/benchmarksKai Koehne2016-12-204-0/+162
| | | | | Change-Id: Iab0d36f7ad8aaced8a24b2959d810a459f244983 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freeMarc Mutz2016-09-236-19/+18
| | | | | | 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.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-064-24/+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-1238-281/+273
|/ | | | | | | | | 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-2437-702/+406
| | | | | | | | | - 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>