summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Rhys Weatherley2009-10-011-2/+2
|\
| * Fix qwidget auto test failing to build on OSX/carbon.Justin McPherson2009-10-011-2/+2
| | | | | | | | Reviewed-by: Sarah Smith
* | Add unit tests for QGLShareRegisterRhys Weatherley2009-10-011-0/+122
|/ | | | Reviewed-by: Sarah Smith
* Make QGLFramebufferObject crash-proof if QGLContext destroyed firstRhys Weatherley2009-10-011-0/+28
| | | | | | | | | | | | | | | | Sometimes it isn't possible to arrange for the QGLFramebufferObject to be destroyed before the QGLContext group in which it was created. Especially during application shutdown or in applications with multiple shared contexts. This change modifies QGLFramebufferObject to use QGLSharedResourceGuard, which ensures that when the last QGLContext in a sharing group is destroyed, any remaining FBO's will revert to !isValid(). It is now safe to destroy the context before the FBO, or the FBO before the context. Unit test included. Reviewed-by: Sarah Smith
* Stabilize tests on X11Olivier Goffart2009-09-304-37/+45
|
* Revert "Make the test fail, not crash for now. A task is already open to fix ↵Peter Hartmann2009-09-301-2/+1
| | | | | | | | | | it." This reverts commit 21cfe5bf6550ae359d6bfa937b1308891954e9bb. The bug is fixed now. Reviewed-By: Alexis
* Merge branch 'focusFixes' into 4.6axis2009-09-301-14/+5
|\ | | | | | | | | | | Conflicts: src/gui/kernel/qwidget_p.h src/gui/kernel/qwidget_s60.cpp
| * Avoided qt3support constructor (S60 port doesn't have it).axis2009-09-301-1/+1
| | | | | | | | RevBy: Paul Olav Tvete
| * Helped out the Symbian compiler to avoid build error.axis2009-09-301-4/+4
| | | | | | | | RevBy: Trust me
| * Revert "Switched to asynchronous focus handling on Symbian."axis2009-09-301-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6377f43410b14125a66ffd02acde69cfb6e455e. The asynchronous handling caused too many headaches with input methods, which expect the focus status to be updated immediately. This may break the test case that was originally fixed by this patch (I cannot find out which one at the moment), but that will have to be solved in a different way. Conflicts: src/corelib/kernel/qcoreevent.cpp src/corelib/kernel/qcoreevent.h src/gui/kernel/qwidget.cpp src/gui/kernel/qwidget_p.h src/gui/kernel/qwidget_s60.cpp
* | Stabilize more test on X11Olivier Goffart2009-09-306-110/+108
| | | | | | | | Each times the test are run, pulse show different failures.
* | Add more debug information to the QPrinterInfo testOlivier Goffart2009-09-301-8/+11
| | | | | | | | Reviewed-by: Paul
* | Stabilize graphicsview testOlivier Goffart2009-09-301-1/+3
| |
* | Merge commit 'origin/4.6' into mmfphononFrans Englich2009-09-3030-499/+1064
|\ \
| * \ Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-303-1/+33
| |\ \
| | * | Don't need to wait that much.Alexis Menard2009-09-301-1/+1
| | | | | | | | | | | | | | | | Reviewed-by:TrustMe
| | * | Be consistant between static method and regular QFileDialog contructor.Alexis Menard2009-09-301-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The protected constructor of QFileDialog call selectAll() on the line edit. This constructor is only called by static methods. But the regular constructor didn't behave the same. Now it does :D. Task-number:QTBUG-4419 Reviewed-by:jasplin
| | * | Make the test fail, not crash for now. A task is already open to fix it.Alexis Menard2009-09-301-1/+2
| | | | | | | | | | | | | | | | Reviewed-by:jesper
| | * | Fix auto-test build.Alexis Menard2009-09-301-0/+2
| | | | | | | | | | | | | | | | Reviewed-by:jesper
| * | | Making tst_QListWidget::closePersistentEditor work for Symbian.Janne Anttila2009-09-301-0/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The persistent editor was not closed in time, as events from Symbian app start up had not had time to be flushed through. The addition of a 1s QTest::qWait gives plenty of time for the app to settle. Probably the better fix would be to add piece of code to testlib which would empty the event queue before executing each test case. However this was seen as an risky solution. Reviewed-by: mread
| * | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-301-1/+1
| |\ \
| | * | Make the automaticReparenting autotest pass on Mac.Jan-Arve2009-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | On Mac, all autotests will use the release version of Qt, regardless of how the autotest was built
| * | | Fixed qdoublespinbox undoRedo test case for Symbian.Janne Anttila2009-09-301-10/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | Symbian does not have keysequene associated to redo functionality. Changed the test so that it checks if key sequence is associated to needed functionality and if not test is skipped and warning printed. Reviewed-by: Aleksandar Sasha Babic
| * | Fix floating point precision when using qreal with QDataStreamEskil Abrahamsen Blomfeldt2009-09-301-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A frequent bug when using QDataStream across platforms where the size of qreal is different (such as any desktop platform and an ARM device) is that you end up using different overloads for streaming the value in and out (e.g. operator>>(double) on desktop and operator<<(float) on ARM.) This can leads to crashes and data corruption. To avoid the problem, we define a single floating point precision for the entire data stream and allow this to be set by the user. The default is to use 64-bit precision for all floating point numbers. Reviewed-by: Samuel Reviewed-by: Thiago
| * | Make the test more robust because pulse doesn't clean the temp dir.Alexis Menard2009-09-301-0/+10
| | | | | | | | | | | | | | | | | | I clean the directory i will use to be sure it is clean. Reviewed-by:TrustMe
| * | Stabilize and speedup QGraphicsItem and QGraphicsView and ↵Olivier Goffart2009-09-303-334/+309
| | | | | | | | | | | | QGraphicsProxyWidget test
| * | Stabilize listview testOlivier Goffart2009-09-301-1/+3
| | |
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Jani Hautakangas2009-09-3016-80/+541
| |\ \
| | * | remove two expected failuresKent Hansen2009-09-301-4/+0
| | | | | | | | | | | | | | | | The tests now pass after the last update of src/3rdparty/javascriptcore.
| | * | Added sql driver deployment for qsqldriver autotest in Symbian.Janne Anttila2009-09-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The sqlite driver is required to run this autotest, and using cetest requires that all plugins are deployed with deployment statements. Reviewed-by: TrustMe
| | * | Shorter button texts.Alessandro Portale2009-09-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | They do not fit into landscape smallscreen. Reviewed-By: TrustMe
| | * | Added standard dialogs to keypad navigation test.Alessandro Portale2009-09-292-28/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | QFileDialog::getOpenFileName(), QFileDialog::getSaveFileName(), QFileDialog::getExistingDirectory(), etc... Reviewed-By: TrustMe
| | * | Skipping two test cases due to Open C bug.Aleksandar Sasha Babic2009-09-291-0/+6
| | | | | | | | | | | | | | | | | | | | In Open C 1.6 release there is a bug in mmap(...) function. The bug has been reported.
| | * | Restoring cases that have been lost.Aleksandar Sasha Babic2009-09-292-3/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to bad merge some of the cases were removed. They have been restored now. Some adaptation for Symbian platform was needed as well. We must not forget that local socket implementation is based on RSocket, and therefore similar to having TCP_SOCKET as basckend. So, in soe places it we had to give some time for events to propagate by introducing qTest::wait() lines.
| | * | Adds QUrl::fromUserInput, gathered from QWebView::guessUrlFromString.Jocelyn Turcotte2009-09-291-0/+65
| | | | | | | | | | | | | | | | Reviewed-by: Thiago Macieira
| | * | mark test as expected failure only when JIT is enabledKent Hansen2009-09-291-2/+8
| | | | | | | | | | | | | | | | With the interpreter it works.
| | * | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-291-0/+39
| | |\ \
| | | * | Make sure delayed events are cancelled when a state machine haltsKent Hansen2009-09-291-0/+39
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the events might creep into the event loop if the state machine is restarted. Reviewed-by: Eskil Abrahamsen Blomfeldt
| | * | Merge commit 'qt/4.6' into mmfphononFrans Englich2009-09-2912-117/+199
| | |\ \ | | | |/
| | | * Introduce state machine event priority, make it possible to cancel eventsKent Hansen2009-09-291-5/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The priority specifies whether the event should be posted to what the SCXML spec refers to as the "external" (NormalPriority) queue, or the "internal" (HighPriority) queue. Delayed events are now posted through a separate function, postDelayedEvent(). That function returns an id that can be passed to cancelDelayedEvent() to cancel it. Reviewed-by: Eskil Abrahamsen Blomfeldt
| | | * Fix auto-test failure for QFileSystemModel::sortAlexis Menard2009-09-291-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test was failing on the farm because the rootPath for the model was invalid. QDir::rootPath on Windows return C:\ but in the farm the temp directory is in E:\ therefore the sort was only triggered on C:\ and this explain the failure. I also make comparaisons a bit more robust. Reviewed-by:TrustMe
| | | * Merge branch '4.5' into 4.6Thiago Macieira2009-09-292-2/+31
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/platform-notes.qdoc src/3rdparty/webkit/WebKit/qt/Api/qwebpluginfactory.cpp src/gui/graphicsview/qgraphicsitem.cpp tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
| | | | * QGraphicsItem: cached embedded widget item is not repainted when widget is ↵Andreas Aardal Hanssen2009-09-291-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updated When calling QGraphicsItem::update() on a cached item, the cache is meant to be invalidated. In the reported bug, the user had a fixed scene rect set for his scene, and removing an item caused the entire scene to be updated (marked as "all needs to be updated"). In this case, calling update() on the cached item did not cause the item's cache to be invalidated. The item's new appearance didn't show up until the next invalidation, which was the same call to update(), but this time without a preceeding full scene update. The fix is to always invalidate the cache, regardless. But only schedule a repaint of the item in some cases (e.g., in this case the whole scene was marked for update, in which case it's unnessary for this one item to schedule a repaint of itself). It's worth noting that in 4.6, removing an item be delete does not cause the whole scene to be updated, and because of that this error was not exposed. It's there nevertheless. Reviewed-by: bnilsen
| | | | * tst_qnetworkcookiejar: Backported 4.6 changesMarkus Goetz2009-09-281-14/+14
| | | | | | | | | | | | | | | | | | | | Reviewed-by: TrustMe
| | | | * Mac: build issue (autotest stalls build)Richard Moe Gustavsen2009-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building Qt static on Mac, the test included actually stops the build process, prompting the user for 'Promteroo?' The reason is that configure runs qmake on all the tests inside the test/auto directory, including the one that is meant for testing qmake itself. In other words, this test should not be qmake'ed when running configure, only when running the qmake auto test. However, the qmake auto test does not run the prompt test anymore either. So the solution for now is to just comment out the test project as well. Reviewed-by: alexis
| | | * | Disable ECMAScript date test.Olivier Goffart2009-09-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On slow machines, the time in which the reference and the result are computed may vary by one second. Task-number: QTBUG-4614 Reviewed-by: Kent Hansen
| | | * | After some discussion we decided to remove hasConflicts() from the API.Jan-Arve Sæther2009-09-292-35/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hasConflicts() does only make sense for a tool/editor of the layout, and how this function would help the tool is only guesswork at the moment. We keep the private API though, in order to let the autotests we inherited from Orbit pass.
| * | | | Symbian specific fixes to QComboBoxJani Hautakangas2009-09-301-2/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes QComboBox edit field geometry in s60style Fixes softkey crash when setting a custom itemview to QComboBox Fixes Symbian keyboard input interval in tst_QComboBox::virtualAutocompletion() Reviewed-by: Sami Merila
| * | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Jani Hautakangas2009-09-292-52/+42
| |\ \ \
| | * | | Stabilize testsOlivier Goffart2009-09-292-52/+42
| | | | |