aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Remove obsolete test_modules testStephen Kelly2012-11-013-87/+0
| | | | | | | The generated module_includes test is a super-set of this test. Change-Id: I086d81806cdbc3c4afbeae0f8683a5b693b6f85a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* CMake: Add a test for module includesStephen Kelly2012-10-291-0/+7
| | | | | Change-Id: Ie9fd7929c1ea22f8acf51bafce64ade74d51a00e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update qml test scenes with new property namesaavit2012-10-293-4/+4
| | | | | Change-Id: I67953f257f8948f3ec821cf3e5bc4763aff8d1aa Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Test: Fix tst_qqmlecmascript::exportDateCaroline Chao2012-10-292-2/+2
| | | | | | | Get timezone offset of the date specified and not the default value. Change-Id: I58dba896098cbee72a2e4ec15ba2c928121e6cff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* test: Mark `tst_qquicklistview', `tst_qquicktext', and `tst_qquicktextedit' ↵Sergio Ahumada2012-10-293-0/+6
| | | | | | | | as insignificant Task-number: QTBUG-27740 Change-Id: I20b15ae35f736f1c43a85e9a37ec3fda19896b07 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Mark failing tests as insignificant.Stephen Kelly2012-10-241-0/+2
| | | | | Change-Id: I2dbed0d5fe632a034a0f656c2e3ccc3e63d4078b Reviewed-by: Richard J. Moore <rich@kde.org>
* Allow QQmlDebugProcess to be child of other qobjects.Frederik Gladhorn2012-10-237-8/+9
| | | | | | | | | | | Some tests when failing would leave the process running. For example on my machine tst_qqmlinspector would hang and restarting it would not work because the before started process was still blocking the port. Change-Id: I32dfb4874b18d7dcf34d0f40819b17dedd794ff3 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Allow tests to run despite custom message patterns.Frederik Gladhorn2012-10-231-1/+1
| | | | | | | With QT_MESSAGE_PATTERN some tests would not run without explanation. Change-Id: I68a9eda08fe56508ffaaef209a1f236621aa932e Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Change qml list interfaceMarco Bubke2012-10-233-3/+68
| | | | | Change-Id: I185c6f4cef6105544504324c1616b5995c219fe3 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* Skip flaky subtests of tests/auto/qmltest.Friedemann Kleint2012-10-222-0/+2
| | | | | | | | | | - Skip test_key_click() in events/tst_events.qml. - Skip test_pixel pixel/tst_pixel.qml. Task-number: QTBUG-27671 Change-Id: Id78c34244d346910e28a2368f9fe3a41f54b8fb9 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Re-enable tst_QJSEngine::stringObjects testPeter Varga2012-10-191-4/+0
| | | | | | | | Corresponding bug has been fixed in QtJSBackend thus re-enable test and remove expected failures. Change-Id: I72d6ce31a1c932db29dad0758e0c2654543a5b1f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fix QQuickTextInput::moveCursorSelection()Konstantin Ritt2012-10-193-46/+43
| | | | | | | | | | | by using fixed QTextBoundaryFinder behavior. Update QQuickTextInput autotests. Task-number: QTBUG-11365 Change-Id: I81761c019e2fe80c9795fe54a2a990bfc5d4b709 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Temporarily skip tst_QJSEngine::stringObjects testPeter Varga2012-10-181-0/+2
| | | | | | | | Expected failures of this test block to land a patch to QtJSBackend that fixes them. Change-Id: If5c73cb668f9cc05e605e4f37c0dfabc0eecb5a8 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Remove interim compatibility measuresAlan Alpert2012-10-1613-122/+122
| | | | | | | | Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Fix performance bottleneck in QQuickWindow::mouseMoveEvent().Sérgio Martins2012-10-113-1/+104
| | | | | | | | | | | | | | | | | | When a mouse move event is received, a lot of time is spent looking for items with cursors, recursively. With this patch, it will only recur into item hierarchies that contain cursors. Not having cursors is much more common than having them. Benchmark included: Before: 15 msecs per iteration (total: 62, iterations: 4) After: 0.000064 msecs per iteration (total: 68, iterations: 1048576) Task-number: QTBUG-27054 Change-Id: I3a5441652ca1c0b8d2cbc5683013562174f5af4a Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Fix QObject::receivers() within connectNotify()Thomas McGuire2012-10-101-0/+2
| | | | | | | | | The receiver count needs to be correct in connectNotify() to be compatible with ordinary connections. Fix this and add test. Change-Id: Icff0486dac49876b8c5d8836a85cff9284368a52 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* In tst_qqmlnotifier, verify the result of QObject::receivers()Thomas McGuire2012-10-101-0/+24
| | | | | Change-Id: If7f93e51afc46c153a87d00a9d9913e0058a09e8 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Update regex related tests of QJSEnginePeter Varga2012-10-101-15/+12
| | | | | | | | | Modify expected results based on ECMA-262 standard and current results of JSC. Task-number: QTBUG-27169 Change-Id: I705d474b2a62775860f6ff6eba8a0f6b28f50ff3 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* Fix potential crash when using text and more than 1 QQuickViewEskil Abrahamsen Blomfeldt2012-09-281-1/+1
| | | | | | | | | | | We need to use a resource guard for the FBO in case there is no current context when the glyph cache is deleted. This reverts commit b3264e2cb6a8fe87754aa1335ab9f8d5e3910c14 which was implemented as a band-aid for this crash. Change-Id: I5b3a09a3998da38836ea851cd0978d3ddadcd2cc Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Added lancelot-based scenegraph rendering regression testaavit2012-09-27208-0/+9671
| | | | | Change-Id: I6718d00ba96dc9c96dac82de4ded9228f6bfb990 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Mark some tests as insignificant to let change#35527 be integratedKonstantin Ritt2012-09-262-0/+6
| | | | | Change-Id: Ic4f7200e04d1decf3eb1be551606a73eeb90c5e5 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fixed instances of "to to" in qtdeclarative.Samuel Rødal2012-09-242-2/+2
| | | | | | | Really it should just be "to". Change-Id: I3263c8d6ce2f0ad33ab12d7ddb9202beac578f91 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* test: Change declarative -> qml in global.cfgSergio Ahumada2012-09-241-1/+1
| | | | | | | This change will be needed to run tst_bic Change-Id: Id924b501bfd26121168c8e0e14dc49cbb883ccb2 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tst_QQuickListView::sectionsDelegate_headerVisibility(): restore QSKIPJ-P Nurmi2012-09-241-0/+2
| | | | | | Task-number: QTBUG-24395 Change-Id: Idd403aa5e81965f4ebf14378b28b47c099a2c487 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-23575-13622/+13622
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Remove outdated bic test file.Frederik Gladhorn2012-09-172-18160/+0
| | | | | Change-Id: I41d90c8ed183f67c745ceb2ea187bb8a38c202fc Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
* Auto tests: PlatformQuirks::isClipboardAvailable()J-P Nurmi2012-09-173-111/+116
| | | | | Change-Id: I24c4417b7475ab07a47fbf5bf23d859e38b5c9ae Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Autotests: Use qInstallMessageHandlerKai Koehne2012-09-1412-75/+74
| | | | | | | qInstallMsgHandler got deprecated in Qt 5. Change-Id: Icb6423c7d9f7e507ba36376b0af5ad183379c494 Reviewed-by: Martin Jones <martin.r.jones@gmail.com>
* Remove tst_qquicktext::alignments()J-P Nurmi2012-09-1311-97/+0
| | | | | | | | | | | These tests are not valid. Will be covered by Lancelot-based scenegraph rendering tests: https://codereview.qt-project.org/#change,34437 Change-Id: I4e5e1b7b5b141d377e4367d143ded6abbddd52a1 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com> Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Remove tst_qquicktextedit::alignments()J-P Nurmi2012-09-1311-91/+0
| | | | | | | | | | | These tests are not valid. Will be covered by Lancelot-based scenegraph rendering tests: https://codereview.qt-project.org/#change,34437 Change-Id: I5f32d09f95bab1b153c821b101599ee7d52e1867 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com> Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
* Remove tst_qquicktextinput::horizontalAlignment()J-P Nurmi2012-09-134-36/+0
| | | | | | | | | | | These tests are not valid. Will be covered by Lancelot-based scenegraph rendering tests: https://codereview.qt-project.org/#change,34437 Change-Id: I1bb6261d7849ec00e23acce496c1e2e61152322e Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com> Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com>
* tst_v4::qtscript(): QSKIP -> QEXPECT_FAILJ-P Nurmi2012-09-131-3/+1
| | | | | Change-Id: I0a9b657b3ce81e0fc3bc788d0db64d27505eba10 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* tst_QJSEngine::jsFutureReservedWords(): QSKIP -> QEXPECT_FAILJ-P Nurmi2012-09-121-1/+10
| | | | | | Task-number: QTBUG-27193 Change-Id: Iaf0bed44374396e59ad3d7f977e3f29d7d5112ee Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* doc: fix some more typosSergio Ahumada2012-09-101-1/+1
| | | | | Change-Id: I7fa055049b9e5900d597754c6004febb153de12b Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* test: Check for null string comparisonSergio Ahumada2012-09-101-1/+1
| | | | | | | Do not compare a QString to QString(). Instead use the .isEmpty() method. Change-Id: I4ef0c050f97b2070ed13d89305ad894479e42dd6 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* tst_qquickfontloader: remove unnecessary skips on WindowsJ-P Nurmi2012-09-071-21/+0
| | | | | | Change-Id: I319d0a5cc2387c5bc1b308e6e12a33e720a2d722 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Fix tst_qquickanimatedimage::mirror_running()J-P Nurmi2012-09-071-10/+14
| | | | | | Change-Id: I6916d90736144101b52449485b09335ac124e498 Reviewed-by: Caroline Chao <caroline.chao@nokia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* QtQml tests: remove QSKIP -> wrap within !QTEST_CROSS_COMPILED guardsJ-P Nurmi2012-09-072-14/+12
| | | | | Change-Id: I200bf6feb137e39061f144bdabd825dea70bd539 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* tst_QQuickPathView::package(): updated QSKIP()J-P Nurmi2012-09-071-1/+1
| | | | | | | | | | QTBUG-21590 has been marked as resolved, but the problem persists. A new bug QTBUG-27170 has been reported and the QSKIP() updated accordingly. Task-number: QTBUG-27170 Change-Id: I91d7df2588d87af833502f6c11d2e6a051e4ebb5 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* doc: fix some typos in .cpp filesSergio Ahumada2012-09-073-3/+3
| | | | | Change-Id: Ica7685aefde84ec80d8af7a67541af454de4adce Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* Updated tst_QJSEngineJ-P Nurmi2012-09-071-9/+5
| | | | | | | | | | Replaced several QSKIP() instances with QEXPECT_FAIL() and removed execScript from the list global object properties as it has been removed from V8: http://codereview.chromium.org/7046002/ Task-number: QTBUG-27169 Change-Id: I28bbb38971ad80551ec24285a321e545db44a79d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* tst_qquickflickable: fix compilation warningJ-P Nurmi2012-09-071-1/+1
| | | | | | | | warning: converting 'false' to pointer type for argument 2 of 'void QQmlContext::setContextProperty(const QString&, QObject*)' Change-Id: Iec0f8bba115f05c7392d6654cd1f52d06ff96e97 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Wrap tst_qqmllocale::timeZoneUpdated() within Q_OS_UNIX to remove QSKIPJ-P Nurmi2012-09-071-19/+20
| | | | | | Change-Id: I9cb0da7dbca6401069f572aef15d5375aadce30d Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* doc: fix some typos in .qml filesSergio Ahumada2012-09-078-8/+8
| | | | | Change-Id: Ice5d60b06ec9ab81fbd98fd1679c8834f3018938 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Attempt to fix tst_QQuickListView::sectionsDelegate_headerVisibility()J-P Nurmi2012-09-061-5/+4
| | | | | | | Task-number: QTBUG-24395 Change-Id: I07b0fc17566e86dcebf913721f293378cf15466b Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Delete weak JS objects on exit right awayThomas McGuire2012-08-313-3/+50
| | | | | | | | | This reduces memory leaks on exit when the engine is destroyed after exec() has finished. Change-Id: I917d103966d55b4dd3ba4e986ff902e29d8fb0ac Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Evaluate bindings more intelligently during constructionAaron Kennedy2012-08-292-2/+1
| | | | | | | | | | | | | | | | | Instead of just evaluating bindings in a fixed order, and possibly having to evaluate a single binding multiple times, prior to reading a property, we check if there are any bindings "pending" on it and evaluate them then. A pending binding is one that has been assigned to the property, but not yet evaluated. To minimize side effects we only do this for "safe" bindings. A safe binding is one that has no side effects, which we currently define as not calling functions or otherwise assigning values during its evaluation. This isn't an entirely foolproof way to ensure that the evaluation has no side effects, but it should be good enough. Change-Id: I98aa76a95719e5d182e8941738d64f8d409f404a Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Only test qtdeclarative examples for naming conventionAlan Alpert2012-08-291-3/+10
| | | | | Change-Id: Id34e29546a22a74a7ae2ad90ee3a8deabccddddd Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Test metatype registration errors with non-metatypes.Stephen Kelly2012-08-283-12/+22
| | | | | | | | | QList<QPoint> is to become automatically registered with https://codereview.qt-project.org/#change,32897 and https://codereview.qt-project.org/#change,33031 Change-Id: I455028e226c15e922162bae21db7e5e9de07063b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Console API: Print JS objectAurindam Jana2012-08-282-5/+7
| | | | | | | | | Calling console.log(), console.debug(), print() etc would only print out "Object" if a JS Object was passed as an argument. This patch calls the toString() on the object. Change-Id: Iadf8b4d1fe81c3e2c7bd65e3c153a930fd994bef Reviewed-by: Kai Koehne <kai.koehne@nokia.com>