summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix a running external tests: user program headers must come first.Thiago Macieira2009-07-251-2/+2
| | | | | No wonder QT_SHAREDPOINTER_TRACK_POINTERS was having no effect: there was an #include <QtCore/QtCore> before it.
* Add support for debugging and valgrinding external testsThiago Macieira2009-07-251-10/+74
| | | | This requires modifying slightl QProcess on Unix to forward stdin too.
* Apply the script I added to gen.sh to existing files: remove template classesThiago Macieira2009-07-25174-167035/+779
|
* Add Perl code to remove template classes from the listing.Thiago Macieira2009-07-251-0/+4
| | | | | | It is possible to export symbols in template classes, but I don't think we use any such cases now (template specialisation). It only works properly with C++0x anyway (extern template).
* Update the test to work with GCC 4.4 tooThiago Macieira2009-07-251-15/+11
|
* Revert "Revert "Add support for creating the object alongside the Data ↵Thiago Macieira2009-07-241-2/+100
| | | | | | | structure in QSharedPointer"" This restores the original implementation of the creating function. The next commit will make it suitable for use.
* Make the internal testcase more robust on Windows FS as wellVolker Hilsheimer2009-07-241-0/+5
|
* Make test more robust against the case-insensitive file system on Windows,Volker Hilsheimer2009-07-241-0/+6
| | | | | | and link against a regular Qt build. Reviewed-by: Trustme
* improve qfileinfo autotest a bitRitt Konstantin2009-07-241-13/+29
| | | | | | | | add a few more subtests; fix fileTimes_oldFile test for non-UTC time Merge-request: 966 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-07-241-31/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.cpp src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.h src/3rdparty/webkit/WebCore/page/DragController.cpp src/3rdparty/webkit/WebKit/qt/Api/qwebframe.cpp src/3rdparty/webkit/WebKit/qt/ChangeLog src/3rdparty/webkit/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp src/gui/painting/qpaintengineex_p.h tools/linguist/lupdate/main.cpp
| * Remove autotest for "Won't fix" bug 258462.Rohan McGovern2009-07-231-31/+0
| |
* | Reverted commits that changed the behavior of the keypresses with modifiers.Denis Dzyubenko2009-07-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Apparently it changes the behavior of Qt too much and also breaks the text input in some keyboard layouts (for example in German layout you need to be able to use Ctrl and Alt or AltGr modifiers to type text). Revert "Don't insert text into a text widget when a modifier is pressed." This reverts commit 099a32d121cbc80a1a234c3146f4be9b5237e7e8. Revert "Fixed the qlineedit autotest." This reverts commit 9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.
* | Implement an FSEvents-based QFileSystemWatcherEngineNorwegian Rock Cat2009-07-231-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been around for a while and really should have been put in earlier. Mac OS X (client) has a much lower ulimit for open files than what some other Unix-like OS's have (in defense it does save memory). However, if you start watching a lot of files, it will start to fall down. You can adjust the ulimit, but it's a bit inconvenient. FSEvents watches the directory and notifies you of changes that happen in that directory (and below, but we don't really use it). It also can be adjusted for latency so that performance isn't affected by heavy file system use (but Qt doesn't use that either at the moment). The other thing is that it doesn't require any open files, so it's much better for our number of open files. This feature is only on Leopard and up, so people wanting to deploy Tiger will still have the "open files" problem to deal with. There are still some optimizations available in this code. For example, we could coalesce things down to watch only one high-level directory without changing much of the implementation. The current implementation has some very simplistic ways of handling things, but this simplicity works well. I documented it, so you can see that, yes, I really meant to do that. Task-Id: 164068 (and others) Reviewed-by: Denis
* | linker fix for WinCEMaurice Kalinowski2009-07-237-5/+14
| | | | | | | | | | | | | | | | - link against correct library - theoretically it should be ok to use QHostInfo::localHostName(), but for this test it is fine Reviewed-by: Thomas Hartmann
* | tst_qnetworkreply: Small and simple latency testingMarkus Goetz2009-07-233-0/+88
| | | | | | | | Reviewed-by: Thiago
* | Add QGraphicsItem::focusProxy(), focus proxy support.Andreas Aardal Hanssen2009-07-231-0/+120
| | | | | | | | | | | | | | | | | | Following QWidget's behavior, you can not assign any item in the same scene as a focus proxy for another item. Also supports nested focus proxies. You can only assign items in the same scene as focus proxies. Autotests are included. Reviewed-By: mbm
* | Fix autotest compile failureJens Bache-Wiig2009-07-221-2/+2
| |
* | QNetworkReply: add possibility to ignore specific SSL errorsPeter Hartmann2009-07-222-2/+170
| | | | | | | | | | | | | | | | | | | | | | | | the same method was also added to QSslSocket. previously, it was only possible to ignore all SSL errors; now, it is also possible to only ignore specific SSL errors, given by a QList of QSslErrors. Moreover, it is possible to call this newly added method right after connecting, not just when we get the SSL error. Reviewed-by: Thiago Task-number: 257322
* | Merge branch '4.5'Thiago Macieira2009-07-222-23/+16
|\ \ | |/
| * QSslSocket autotest: adapt to new certificate on test serverPeter Hartmann2009-07-222-23/+16
| | | | | | | | | | | | got a new certificate, which is self-signed now Reviewed-by: Thiago
* | Make QStateMachine inherit QStateKent Hansen2009-07-222-240/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for a "root state" in the machine; or rather, the machine _is_ the root state. User code can now pass in a QStateMachine directly to the QState constructor, instead of machine->rootState(). This also means we could get rid of the "proxying" from the machine to the root state for things like properties (initialState et al), finished() signal and auto-reparenting of states (the ChildAdded event hack). A fun little side-effect of this change is that it's now possible to embed state machines within state machines. We can't think of a good use case yet where you would rather embed a stand-alone state machine (with its own event processing etc.) rather than having just a regular nested state, but it's neat and it works. Reviewed-by: Eskil Abrahamsen Blomfeldt
* | Merge commit 'origin/4.5'Olivier Goffart2009-07-221-0/+31
|\ \ | |/ | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene.cpp src/gui/kernel/qt_cocoa_helpers_mac_p.h
| * Add a (failing) test for QProcess bug 258462.Rohan McGovern2009-07-221-0/+31
| |
* | Show text even if maximum == 0Olivier Goffart2009-07-221-1/+1
| |
* | Support for very large range in QProgressBarOlivier Goffart2009-07-221-1/+31
| | | | | | | | | | | | Regression since my last commit. Task-number: 152227
* | Fix Warning saying that signal cannot be made virtualOlivier Goffart2009-07-221-0/+22
| | | | | | | | | | | | | | | | The test for virtual signal did not work. But we cannot make an error right now or it might break existing code (exemple in task 210879) Reviewed-by: Kent Hansen
* | Improve performance in QUrl parsing by doing in-line operations.Thiago Macieira2009-07-211-2/+2
| | | | | | | | | | | | Unfortunately, I can't do it all inline because the punycode encoding and decoding requires reading the source several times. (Maybe the decoding can be done with some effort in the future)
* | Change qt_nameprep to do in-line namepreppingThiago Macieira2009-07-211-6/+6
| | | | | | | | This will allow to do less allocations in qt_ACE_do.
* | Implement strict STD3 checking of hostnames in URLs.Thiago Macieira2009-07-211-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the toPunycodeHelper function write to a QString. Renamed qt_from_ACE to qt_ACE_do to indicate what it actually does. Added the STD3 rules for hostnames, forcing hostnames to have to strictly comply to STD3. Also, execute nameprep in the correct order (before trying to encode to Punycode). Validate hostnames when QUrlPrivate::canonicalHost() called, including validation of IP Literals. Validation of IPv4 is missing. Adapted other functions to use qt_ACE_do, notably QUrl::toAce (avoid code duplication).
* | Fix memleaks in the autotestsKent Hansen2009-07-211-1/+14
| |
* | add autotest for adding transition from state machine's rootKent Hansen2009-07-211-0/+10
| | | | | | | | | | | | It's not supported because the root state has no ancestor, which is a requirement for the state machine's transition selection algorithm.
* | fix tests for QT_NO_PROCESS and when running tests as rootHarald Fernengel2009-07-2114-26/+82
| |
* | use /usr/bin/env perl as interpreterHarald Fernengel2009-07-211-1/+1
| |
* | Workaround for transacted, locked and inaccesible filesRitt Konstantin2009-07-201-2/+16
| | | | | | | | | | | | | | | | | | | | | | wich can not be stat'ed in a natural way. FindFirstFile solves this problem. Task-number: 167099 Task-number: 189202 Merge-request: 880 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* | Use QVERIFY in benchmarks, insteads of returning silently in case of errorOlivier Goffart2009-07-201-4/+2
| |
* | Add low level POSIX bench on WindowsRitt Konstantin2009-07-201-6/+31
| | | | | | | | | | Merge-request: 702 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | Adding test case for PNG compression icon loadingminiak2009-07-202-0/+33
| | | | | | | | | | Merge-request: 431 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* | absolute lupdate path for the new test as wellOswald Buddenhagen2009-07-201-1/+1
| |
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-204-11/+41
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * Fix assert in message handling.Frans Englich2009-07-201-0/+18
| | | | | | | | | | | | | | Trivial fix. Reported by Michael Brasser. Task-number: 258337 Reviewed-By: Peter Hartmann
| * don't rely on system codec when handling PO filesOswald Buddenhagen2009-07-171-1/+1
| | | | | | | | | | - make -input-codec affect PO files, default to UTF-8 - add -output-codec for PO files, same default
| * Test case for QDirIterator regression introduced in 4.5.0João Abecasis2009-07-171-10/+21
| | | | | | | | | | Task-number: 258230 Reviewed-by: Olivier Goffart
| * tst_qnetworkreply: Removed warningMarkus Goetz2009-07-171-0/+1
| | | | | | | | Reviewed-by: TrustMe
* | WinCE build fixes. Use qgetenv instead of getenv...Joerg Bornemann2009-07-202-5/+5
| | | | | | | | Reviewed-by: thartman
* | make test immune to qt header changesOswald Buddenhagen2009-07-171-2/+2
| | | | | | | | ... by hiding the include from lupdate's view
* | Fix for selection with Shift-Arrow/Shift-Click in QListView's IconModeFrank Reininghaus2009-07-171-0/+67
| | | | | | | | | | | | | | | | | | | | | | This addresses the selection of items using Shift-Arrow or Shift-Click in QListView's IconMode if the items are in a grid layout. In the case that the items do not have the same size (e.g., because their text is wrapped), this commit prevents the unexpected selection of additional items. New unit tests are included. Merge-request: 666 Reviewed-by: Olivier Goffart
* | Merge branch 'screencountchanged'Volker Hilsheimer2009-07-172-0/+190
|\ \ | | | | | | | | | | | | Reviewed-by: denis Reviewed-by: Prasanth
| * | Implement QDesktopWidget::screenCountChanged signal on desktop platforms,Volker Hilsheimer2009-07-172-0/+190
| | | | | | | | | | | | | | | | | | | | | and add manual testcase. Provide replacement "screenCount" for numScreens and document numScreens as obsolete to be more consistent with other APIs.
* | | Add priority property to QActionJens Bache-Wiig2009-07-172-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need this to support the behavior in Gtk+ where, when Qt::ToolButtonTextBesideIcon is used, only text labels for important actions are shown. It will also enable us to prioritize actions in the future when for instance collapsing a toolbar. Task-number: 258290 Reviewed-by: thierry
* | | Lets the size of the completer be configurable in a way similar to QComboBox.Frédéric Mercille2009-07-171-0/+68
| | | | | | | | | | | | | | | Merge-request: 884 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>