summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix limitting shortcuts to keypad onlyJani Honkonen2012-08-311-0/+47
| | | | | | | | | | | | | | | | | | The Qt::KeypadModifier modifier is internally masked away from all shortcuts. So it is not possible to set a keypad only shortcut. Changed the implementation so that first a full keysequence match is searched. Then if no match is found the same sequence is tried without the keypad modifer. Added a autotest for this also to cover the basic use cases relating to this. This is a backport of qt5 commit: 547a1bea492954d828aa0798be93384669812489 Task-number: QTBUG-20191 Change-Id: Ibb6809050ff6da23bdb1c087b93e517d1963d34c Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Make connectNotify() work with QMLThomas McGuire2012-08-315-0/+389
| | | | | | | | | | | | | Call connectNotify() and disconnectNotify() in QML signal handlers and in QML bindings. This is a backport of Qt5's QtDeclarative commit 26ea8e01e9ee2a8c8c09266147b94c9ac92d09f9. Task-number: QTBUG-11284 Change-Id: If5c3701426208875f3b775040c4e7bcbaac2b0a9 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Mark updateAndelete as XFAIL on Lion and above.Morten Johan Sorvig2012-08-311-1/+1
| | | | | | | It fails on Mountain Lion as well. Change-Id: I9841e857c1746ed69ccad9dfccf3fb9135e6abde Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Fixed the QTreeView expansion/collpasing when animatedThierry Bastian2012-08-311-0/+41
| | | | | | | | | | | | | | | | | | If you had a QTreeView with expandable items, if you tried to expand and while the animation was still running you'd try to collpase the node, the display would be completely broken: the items below that items would not be visible any more except for a fraction of a second when expanding or collapsing it again. The problem is in the fact that when starting an animation the QTreeView stores the state before animating. And it does that even if an animation is already running. So the stateBeforeAnimation becomes AnimatingState and when the animation finishes, AnimatingState is the state that is restored breaking the painting. Unit test is included. qtbase-sha1: 1e97dbaf6ca807397e3ec77a3611763769499d17 Change-Id: I62e16101b70153f78022f6195fd9de6db0cd4878 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* tst_qtoolbutton: stabilize and improve failure messageRohan McGovern2012-08-281-2/+7
| | | | | | | | | | | Allow for a little more leeway in timers. Task-number: QTBUG-26004 Change-Id: I59936d0f675b7f734e04b3f5e63631c74ca4f163 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> (cherry picked from commit 4eecbf3b842afcfb91d78552ce19d2c0b8f8c53a) Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* QSharedPointer: make QT_SHAREDPOINTER_TRACK_POINTERS work with QObjectsGiuseppe D'Angelo2012-08-271-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | If setQObjectShared crashes because a QObject is tracked by two different QSharedPointers, we lose the debug feature offered by #defining QT_SHAREDPOINTER_TRACK_POINTERS, as the check done by this define happens after the setQObjectShared call. Therefore, move setQObjectShared after the internalSafetyCheckAdd2 call. This way, the error raised by QSharedPointer created changes from f.i. QSharedPointer: pointer 0xa10010 already has reference counting to the more "debuggable" (and consistent with non-QObjects) QSharedPointer: internal self-check failed: pointer 0x1dd90e0 was already tracked by another QSharedPointer object 0x1dd9330 "Backport" of change-id I71340d0f878828354537762d01c46d441efc918c from qtbase (although, as of commit 609b0a9c2e69180ceff5d89c42e0d9468491d7e3, this issue is not present there, as setQObjectShared does nothing). Change-Id: I4cea83d705795eae0e05da128a3f189aea36f5ce Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Take account of hidden items in QListView when using scrollTo.Stephen Kelly2012-08-271-0/+29
| | | | | | | | | | This is a backport of 799ceebad8a2dbe1ca0e60a11c7d6ca0c2c8b7a9 from qtbase. Task-number: QTBUG-21804 Change-Id: I757b9598f354cdfa62c08d0c2613ded93fe88804 Reviewed-by: Jani Honkonen <jani.honkonen@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* test: Re-enabling tst_QPrinter testSergio Ahumada2012-08-251-3/+0
| | | | | | | This test has been passing for some time now. Change-Id: I8d03e3af184645b89b8a2e81be7d4bc5be14816e Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Remove useless insignificant_test markSergio Ahumada2012-08-251-2/+0
| | | | | | | | This mark does not have any effect as the real mark is under tests/auto/selftests/test/test.pro Change-Id: I8885e6921940d0652326934dd1acc2d0cd3bc7a0 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* test: Re-enabling tst_QToolTip testSergio Ahumada2012-08-251-2/+0
| | | | | | | This test has been passing for some time now. Change-Id: If33c0a4b675f6ab331fa64709c2c8c8f3f3ffb4e Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* QUrl: fix thread safety.David Faure2012-08-231-0/+83
| | | | | | | | | | | | | | | Developers expect const methods on the same QUrl instance to be usable from multiple threads (including copying and modifying the copy). The delayed parsing and internal cache of encoded strings break this, however (and the implicit sharing, for the case of copying). Protection with a mutex fixes this. Qt-5.0 doesn't have this issue, since QUrl doesn't do delayed parsing anymore. Change-Id: Ie2674e46eb7416b0e753323b673c10f9d3457f6d Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Fix a QListViewItem width when spacing is setJani Honkonen2012-08-231-4/+76
| | | | | | | | | | | | | | | | The listitem width was calculated incorrectly because spacing was not considered. This fixes the second part of the reported bug where spacing is set. Added some tests to catch the issue relating to the reported bug. Also added a test to check spacing in general. Backported from Qt5 commit: d2bba5e5535726f277e8dc67b1478168f57b24bd Task-number: QTBUG-21804 Change-Id: I20cae3a2b9d42650052441f9f15b43f72418f58b Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* test: Mark tst_qdeclarativeflickable unstable failures as XFAILSergio Ahumada2012-08-231-2/+14
| | | | | | | | The test has two unstable failures, so mark these with QEXPECT_FAIL Task-number: QTBUG-26905 Change-Id: I1912626376f70ae6d645638fb5b07dbf9e4c3393 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Mark tst_QWidget unstable failures as XFAILSergio Ahumada2012-08-231-5/+26
| | | | | | | | | XFAIL'ing lots of failures on Linux and Mac. Also removing some unused variables. Task-number: QTBUG-26896 Change-Id: I1deb1ad0141e48d3df7cf0a2a4ea84c593f4a0fc Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix undo and redo in QLineEdit when in password modeJani Honkonen2012-08-221-0/+66
| | | | | | | | | | | | | There are some security issues with undo/redo. User should not be able to get the erased password back in any situation. Therefore redo must be disabled completely and undo is limited only for erasing previously entered text. Backported from Qt5 SHA1: 121062d8848986dcfaf421388a5603b3b48a1e58 Task-number: QTBUG-14226 Change-Id: Ia712f95e8a2e45537a95d48b70686a1a8dd95da2 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* Fix QListWidget scrolling with keys when there are hidden itemsJani Honkonen2012-08-221-0/+52
| | | | | | | | | | | | | If the selected item is scrolled with keyboard keys the selected item will go outside the visible area. The scrolling did not take hidden items into account when calculating the amout to be scrolled. Backported from Qt5 commit: d4385e48b8566a5587048a3c6d8b2396ba587ed5 Task-number: QTBUG-21804 Change-Id: I81a82ed56bb0e4c0229fd117784790e1234aacca Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* test: XFAIL tst_QListWidget::fastScroll() test on WindowsSergio Ahumada2012-08-211-0/+5
| | | | | | | | | The test has one unstable failure so mark it with QEXPECT_FAIL until is fixed. Task-number: QTBUG-26892 Change-Id: If7e647380a99db3145522c780980fe4904c76114 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QFileInfo test on WindowsSergio Ahumada2012-08-211-2/+0
| | | | | | | This test was fixed by b1c46b4b3e322554146aed92cd6035cd9ba43982 Change-Id: I423ea7cb2587c23cc5afe2eac28bed8ba80d67a2 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QListWidget testSergio Ahumada2012-08-171-2/+0
| | | | | | | This test has been passing for some time now. Change-Id: I2ac0eaacab5e9873b691d3d1f5dad3d85ec90485 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QImageReader testSergio Ahumada2012-08-171-2/+0
| | | | | | | This test has been passing in a stable way since build 679. Change-Id: I19dd774793b11604ac0c725cc23adc58fd63cba7 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* Fix tst_qbytearray on QNX/Blackberry systemsRafael Roquetto2012-08-172-4/+2
| | | | | | | | | tst_QByteArray::qUncompress() no longer fails on QNX systems. cherry-picked from qt commit 555e4e05f4f98f524e108fba0fb236406f2e2b2f Change-Id: Ia88204b42f65a94c3f00c4b618255e1870c5a564 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Implement QAccessibleLineEdit::characterRect()Jan-Arve Saether2012-08-161-0/+10
| | | | | | | | | It was probably not implemented because it needed to access private APIs. However, accessing those from this a11y plugin is unproblematic. Change-Id: Icadad45a83daa60e2fbc4cab17b91c84c3f36a7f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* test: Re-enabling tst_qdeclarativeerror testSergio Ahumada2012-08-161-1/+0
| | | | | | | This test is passing now on Windows. Change-Id: I569c32c268406e3909ad418dc1761f85e9388f92 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix error test on Windows.Glenn Watson2012-08-162-1/+2
| | | | | | | | | Add missing .gitattributes file to ensure the test data file is checked out with LF line endings on Windows. Change-Id: I9ece655dbc8657d6e70c58ce1ada06ee021c92ad Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> (cherry picked from commit 587b21cf18bcb689aef58411837ed616b02c952b)
* Fix for restoring dockwidget's size when it gets dragged.Mikko Knuutila2012-08-161-0/+27
| | | | | | | | | When user drags a dockwidget out of the docking area, restore widget's previous floating size and center it's titlebar under the mouse. Task-number: QTBUG-2940 Change-Id: I004de36d649abc4c32420bdd46bb6c810ef98c64 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
* XMLHttpRequest does not support the DELETE methodJani Honkonen2012-08-154-3/+29
| | | | | | | | | | This is a backport from qt5 commit: 0eeb925aa5039ffddf8d623f250980fc4c97712e Task-number: QTBUG-17963 Change-Id: Ibc262e81d6c7d3b6882461627a7a312d1fbafb3b Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* test: Re-enabling tst_QFont testSergio Ahumada2012-08-151-2/+0
| | | | | | | This test has been passing for a long time. Change-Id: I45b5d155979dc2055349906d3dde2caa6900d827 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enable tst_QGraphicsEffect test.Sergio Ahumada2012-08-152-2/+22
| | | | | | | | | | The test has four stable failures. Mark these with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-26858 Change-Id: I278baa8179f1be83b6d6f620393fcaea92a5bf2f Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* license: Fix Blackberry/QNX license headersSergio Ahumada2012-08-141-17/+0
| | | | | | | | | | | | | These files where skipped when tst_license was enabled a while ago since they had a different license header that didn't match our test. Fix these licenses and stop skipping them in tst_license.cpp Change-Id: I14b2aa1b7c794894c2c74aedab01ff8667621003 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* test: Re-enabling tst_QTreeView testSergio Ahumada2012-08-141-1/+0
| | | | | | | This test has been passing for a long time. Change-Id: Iebf211aa87bbf1a65910412c2fa2753d7e21b574 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QMenu testSergio Ahumada2012-08-141-2/+0
| | | | | | | This test has been passing for a long time. Change-Id: I75f3ec9d7e44df4e7cdf821aa85efa5e93724ba1 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QNetworkConfiguration testSergio Ahumada2012-08-141-2/+0
| | | | | | | This test has been passing for a long time. Change-Id: Ifb5088dd8e0e8ec3ea03baaf0ccabbffd82e6722 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QNetworkConfigurationManager testSergio Ahumada2012-08-141-2/+0
| | | | | | | This test has been passing for a long time. Change-Id: I570540b907e390bffad5e4afea1f2bc0f7099327 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* test: Re-enabling tst_QWidget_windowSergio Ahumada2012-08-131-2/+0
| | | | | | | This test has been passing for a long time. Change-Id: Ic3ac0c9e5ab266912283e3f89fb06b6b08b777e9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* test: Mark tst_QTimeLine as significant on platforms other than WindowsSergio Ahumada2012-08-101-1/+1
| | | | | | | | This test only fails on Windows at the moment, so enabling it for all the other platforms. Change-Id: I41fe201b94126d7ca82b39f2124f5a9e35109afe Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* tests: Re-enable tst_MacNativeEvents test.Sergio Ahumada2012-08-092-3/+5
| | | | | | | | This test is unstable on Mac OS X so marking it with QEXPECT_FAIL and re-enable the test. Change-Id: I8549378db1216de7484feb4080e5e2a1522d2418 Reviewed-by: Caroline Chao <caroline.chao@nokia.com>
* tests: Re-enable tst_QMdiSubWindow test.Sergio Ahumada2012-08-082-2/+5
| | | | | | | | The test has one unstable failure. Mark this with QEXPECT_FAIL and re-enable the test. Change-Id: I2ccbbae4d5367cd9a24577857ed97247018f140e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: Re-enable tst_QGraphicsProxyWidget test.Sergio Ahumada2012-08-082-2/+6
| | | | | | | | The test has one stable failure. Mark this with QEXPECT_FAIL and re-enable the test. Change-Id: I2e536f1b40a1d36ab593d724ee5f9ce66ce87495 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Changed qt version to 4.8.3jutaipal2012-08-086-6/+6
| | | | | | | | | Change-Id: Ib26f4c1d3b236f947d685ef5c376c203bda0e650 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com> Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Simo Fält <simo.falt@nokia.com> Reviewed-by: Juha Kukkonen <ext-juha.kukkonen@nokia.com>
* Avoid crashes when invalidating a proxy model filter.Stephen Kelly2012-08-081-0/+66
| | | | | | | | | | Backport of b84e180263d0da3d1e6967fcf759225a778ea6ea from qtbase. Task-number: QTBUG-26107 Change-Id: I8323b19ce7b641165de21ad9a6e6b05bf4d93b1c Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* test: Re-enable tst_Symbols testSergio Ahumada2012-08-082-3/+1
| | | | | | | | Adding '--dynamic' to nm to display dynamic symbols rather than the normal symbols. Change-Id: Ia162cbb6e1290835727f3bf2c4b8702ba22c6fd3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: Re-enable QTextScriptEngine test.Sergio Ahumada2012-08-062-2/+10
| | | | | | | | | The test has four stable failures. Mark these with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-26495 Change-Id: I9897c4008bd925402f18af87988feedcdd729062 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* tests: Re-enable QAccessibility test.Sergio Ahumada2012-08-032-2/+12
| | | | | | | | | The test has four stable failures. Mark these with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-26499 Change-Id: I3774405f736609a4c262d2d44c5ffcceec1a0a09 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Don't crash if queued signal handler no longer existsKent Hansen2012-08-031-0/+33
| | | | | | | | | Cherry-picked from qt5/script commit c89315da2e836fe67c4228cfb73c25a68b0a3a95 Task-number: QTBUG-26261 Change-Id: I24544e2f8c36eaf19c65d9a30affd1f3e05b52bb Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Fix crash when converting invalid JSValue to stringKent Hansen2012-08-031-0/+9
| | | | | | | | | | | JSC::JSValue::toString() expects that the input is valid. Cherry-picked from qt5/qtscript commit b2969c97fd808e229ff57949dbb9c683f3830b71 Task-number: QTBUG-21896 Change-Id: I534642154ffa4ae400a2ab8e5ce1f0c35899ae6e Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Stop allowing the old-style Contact: line in license headersSergio Ahumada2012-08-021-7/+1
| | | | | | | | | | | The following line should be used instead ## Contact: http://www.qt-project.org/ Change-Id: I75479b017a76872640043920811066d4a0605a10 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* test: Re-enable tst_Headers test.Sergio Ahumada2012-08-021-2/+0
| | | | | | | | The test had one stable failure which should be fixed by adding missing QT_MODULE and QT_BEGIN_NAMESPACE macros Change-Id: I10801e4c495bee66e1937a57d14019dae8b43a9d Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix crash when accessing QObject properties through activation objectKent Hansen2012-08-021-0/+18
| | | | | | | | | | | | | | | | | | | Since objects in the scope chain have to be JSActivationObjects, QScriptContext::setActivationObject() creates a proxy object that should delegate access to the actual object. This case was not handled in the toQObject() conversion function, so for activation property access through evaluation (where the this-object would be the proxy object, not the actual QObject), the this-object conversion to QObject would fail, and the assert "this-object must be a QObject" was triggered. Cherry-picked from qt5/qtscript commit 44062ea8e2499f8d2061c7e5be8fb754f2ba4310 Task-number: QTBUG-21760 Change-Id: I284b70ea5c9af3a15dadd4243283afe0d00bcd5a Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011793-3603/+3597
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* test: Re-enable tst_QMdiArea test.Sergio Ahumada2012-08-012-1/+4
| | | | | | | | | The test has one stable failure. Mark this with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-26726 Change-Id: I7b59609f71d35af27b56f62eedc9bbef4adb7f65 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>