summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Fix to the autotests of Animations to spit less warningsThierry Bastian2009-09-223-67/+77
|
* Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-221-0/+2
|\
| * Fix memleak in tst_qhttpnetworkconnectionMarkus Goetz2009-09-221-0/+2
| | | | | | | | Reviewed-by: TrustMe
* | Added explicit casts to make QScriptValue autotest compile with NokiaX86Miikka Heikkinen2009-09-221-2/+2
|/ | | | | | | NokiaX86 compiler has problems with implicit casts and templates, so worked around this problem with explicit casts. Reviewed-by: Janne Koskinen
* Workaround a bug in QDirModel in tst_QDirModel::task196768_sortingOlivier Goffart2009-09-221-8/+5
| | | | | | | | | | | | | | The test was reported failing by pulse on many platform, but noone of us was able to reproduce it locally. The problem was that pulse runs the tests in a hidden dirrectory. And this exposed a bug in the QDirModel. We decided anyway that the bug was not worth fixing considered that QDirModel is kind of deprecated in favor of QFileSystemModel. (The bug is the one reported in task 255066) Reviewed-by: mbm Reviewed-by: Thierry
* Fix breaking on fixed column width when text has tabsEskil Abrahamsen Blomfeldt2009-09-221-0/+36
| | | | | | | | | | | | When a text in QTextLayout contained tabs, these would be counted as single glyphs when breaking the text on a fixed number of columns, rather than the number of characters they span. The patch calculates the number of characters represented by a tab by using the average character width of the font engine. Task-number: QTBUG-4468 Reviewed-by: Simon Hausmann
* tst_qnetworkreply: Increased timeout of uploadPerformance()Markus Goetz2009-09-221-1/+1
|
* Make QDialog, and QTreeView test more robustOlivier Goffart2009-09-222-6/+10
|
* Merge commit 'origin/4.5' into 4.6Andreas Aardal Hanssen2009-09-223-2/+41
|\ | | | | | | | | | | Conflicts: src/corelib/kernel/qcoreapplication.cpp tests/auto/windowsmobile/test/tst_windowsmobile.cpp
| * Cached clip path not cleared correctly for ancestor that clips to shapeAndrew Christian2009-09-221-0/+32
| | | | | | | | | | | | | | | | | | Fix QGraphicsItem to clear clip path for items with an ancestor that clips to shape. Added autotest to demonstrate clipping path problem. Merge-request: 810 Reviewed-by: Alexis Reviewed-by: Andreas
| * tst_windowsmobile: local include correctedJoerg Bornemann2009-09-221-1/+1
| | | | | | | | Reviewed-by: TrustMe
| * Added more tests for QTextCodec::codecForHtml()Stian Sandvik Thomassen2009-09-221-1/+8
| |
* | * QPixmap: Add toWinHICON() & fromWinHICON() methodminiak2009-09-2210-3/+112
| | | | | | | | | | | | | | | | | | | | Duplicate QPixmap <-> HICON conversion code removed from qwidget_win.cpp & qsystemtrayicon_win.cpp. Task-number: 218533 Merge-request: 1570 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* | Don't run host tools autotests when Qt is cross compiled.Rohan McGovern2009-09-221-10/+10
| | | | | | | | Reviewed-by: mstormo
* | Fix tst_QScriptEngine::throwErrorFromProcessEventsOlivier Goffart2009-09-221-1/+0
| | | | | | | | | | | | | | | | | | | | The problem is that the interpreter did not check for exception while running the "while(true){}" loop, as it deduced that none of the generated opcode would possibly generate an exception. The solution is to force a check right after we come from a timeout. Reviewed-by: Kent Hansen
* | QMatrix4x4::mapVector() to transform by top-left 3x3Rhys Weatherley2009-09-221-0/+61
| | | | | | | | | | | | | | | | It is useful to be able to map direction vectors by the top-left 3x3 component of a 4x4 matrix, ignoring the translation and projection components. Reviewed-by: Sarah Smith
* | Add some more debugging to this test.Rohan McGovern2009-09-211-1/+1
| |
* | Removing needless qWaits and replacing others with QTRY_VERIFYsJoão Abecasis2009-09-211-21/+30
| | | | | | | | For more dependable test results.
* | Fixing some compilation warnings in xml testsJoão Abecasis2009-09-213-3/+3
| | | | | | | | Reviewed-by: Peter Hartmann
* | CompilePaul Olav Tvete2009-09-211-1/+1
| | | | | | | | Reviewed-by: aportale
* | Fix autotest compilationOlivier Goffart2009-09-211-1/+0
| |
* | Optimized GL2 engine to use scissor clipping more aggressively.Samuel Rødal2009-09-211-1/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's no reason to stop using a scissor clip when a more complex clip is set. Instead, we can use a combination of scissoring and depth clipping to represent the final clip. When intersecting with a new clip path, if the clip path is a rectangle we simply intersect it against the scissor clip, and otherwise we intersect its bounding rect against the scissor clip and write the actual path to the depth buffer. The patch simplifies the logic in clip() quite a bit, except in the UniteClip case in which we don't care about performance anyways. It also fixes a bug which could cause rendering errors if the stencil buffer contains junk before painting. Reviewed-by: Gunnar Sletta
* | QtScript: Fix comparing QVariant and QObject.Olivier Goffart2009-09-211-2/+40
| | | | | | | | | | | | | | This add a hook inside JSC to be able to implement our own comparison function when comparing objects. Reviewed-by: Kent Hansen
* | When using Plastique style, changing the background style sheet property of aGabriel de Dietrich2009-09-211-0/+51
| | | | | | | | | | | | | | | | spinbox wouldn't set the correct background for the embedded line edit. Reviewed-by: Olivier Task-number: 232085 Task-number: QTBUG-3013
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Andy Shaw2009-09-211-24/+52
|\ \
| * | Improved license header autotest.Kim Motoyoshi Kalland2009-09-211-24/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the license in .h files as well as .cpp files and check some files that were previously skipped. Instead of scanning through the whole Qt directory for .cpp and .h files, only search through a set of subdirectories. Accept '\r' as line break in addition to '\n' and "\r\n". Reenable the copyright check that was commented out. Reviewed-by: Frans Englich
* | | Ensure that the menu only shows when clicking on the menu buttonAndy Shaw2009-09-211-0/+54
|/ / | | | | | | | | | | | | | | | | | | | | | | | | In Qt 3 clicking on the toolbutton would not popup the menu, only when clicking on the arrow for the menu popup would this appear if the toolbutton had MenuPopup mode set. When a Q3ActionGroup is used and added to a toolbar then it will give a toolbutton with such a button. This patch fixes the behaviour so that only clicking on the arrow button will cause the menu to appear in this mode. Reviewed-by: Thierry
* | On Mac, the posted events are processed on the first time in the loopBenjamin Poulain2009-09-211-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Mac OS X, we use a custom source for posted events. The first time the event loop is entered, the custom source is added to the native event dispatcher but the events are not processed. In Qt, we expect those events to be processed. To work around the problem, a new observer is added to the event loop. This observer is only triggered the first time the event loop is entered. When the observer is triggered, the posted events are sent. Task-number: QTBUG-4521 Reviewed-by: Richard Moe Gustavsen Reviewed-by: João Abecasis
* | Add a new compressable event QEvent::UpdateSoftKeys.Jason Barron2009-09-212-0/+142
| | | | | | | | | | | | | | | | | | | | | | Now that the softkey framework triggers updates on focus changed, window activated, and action added/removed/changed the softkey bar was updating many times resulting in flicker. Solve that by introducing a new event type that is posted to the softkey framework. Since we only need to update the softkeys once per event loop iteration, the event is compressible in the event loop. Reviewed-by: Alessandro Portale
* | Fix one QDialog auto test case where due to changed S60 positioning rules,Sami Merilä2009-09-211-1/+22
| | | | | | | | case failed.
* | S60 native looking dialog support.Sami Merilä2009-09-211-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Related to QTSSIXTY-63 "Make Qt dialogs look native" S60 dialog support: * Positioning according S60 rules: - in portrait dialogs at the bottom of the screen, - in landscape positioned in the center of the screen [unless device supports bottom softkeys], so that softkeys are not covered by the dialog * If dialog shows extension, then dialog is re-positioned * Dialog size: - in portrait screen wide dialog, height can change - in landscape width is the same size as width in portrait (some dialogs are maximized) * No push buttons or DialogButtonBoxes in internal qt dialogs (QWizard, QInputDialog, QFileDialog, QFontDialog, QColorDialog, QProgressDialog, QErrorMessage, QMessageBox), instead signals are remapped to softkeys. * Globally, dialogbuttonboxes are converted automatically to softkeys. OPEN: * Needs to be re-factored slightly after softkey API refactoring is finished. BUGS: QWizard layout switch is wonky - dialog is not re-sized correctly. QFontDialog will not fit into device screen (too much widgets in it). Some effort needed to be make it smaller. Cannot set one softkey at the time softkeys => Options menu and right softkey cannot be set separately [SoftKey re-factoring will help] Dialogs cannot get touch events to softkeys [SoftKey re-factoring will help] Reviewed-by: Alessandro Portale Reviewed-by: Jason Barron Reviewed-by: mread Reviewed-by: Shane Kearns
* | Fix bug in the invisibleStretchLastSection autotest.Jan-Arve Sæther2009-09-211-15/+15
| | | | | | | | | | | | | | Reduce the count so that it can fit on one screen. Also make sure we call setStretchLastSection after the resize, since setStretchLastSection depends on the size of the view.
* | Small improvements to some autotests.Denis Dzyubenko2009-09-183-128/+54
| | | | | | | | | | | | | | This should improve qgraphicsview, qgraphicsitem and qtableview autotests on slow window managers on X11. Reviewed-by: trustme
* | make tests/auto/qicon/qicon.pro work in shadow buildsJoerg Bornemann2009-09-181-5/+7
| | | | | | | | Reviewed-by: TrustMe
* | Adding support for symbian graphics resources.Aleksandar Sasha Babic2009-09-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables us to convert from and to new Symbian type of graphics resource, namely SgImage. This only supported with the OpenVG graphics system. On other graphics systems this will return null QPixmap. Conflicts: src/corelib/global/qglobal.h src/gui/image/qpixmap.h src/gui/image/qpixmap_s60.cpp Reviewed-by: Jason Barron
* | Add debug outputPaul Olav Tvete2009-09-181-0/+7
| | | | | | | | | | | | | | | | This test mysteriously fails when run from the autotest system, but succeeds when run manually. We need more data to find out what is going on. Sort-of-reviewed-by: Jesper
* | Change name of test to tst_QGraphicsAnchorLayout1Jan-Arve Sæther2009-09-181-31/+31
| |
* | Stabilize testOlivier Goffart2009-09-182-3/+3
| |
* | Don't fail if no printers are available.Paul Olav Tvete2009-09-181-0/+3
| |
* | Only ignore the addChildLayoutItem warning in debug builds.Jan-Arve Sæther2009-09-181-1/+4
| | | | | | | | We only output that message in debug builds....
* | Autotest: fix compilation with a more strict compiler / libc.Thiago Macieira2009-09-182-0/+5
| | | | | | | | Reviewed-By: TrustMe
* | QGraphicsAnchorLayout: Added an auto test for size policyAnselmo Lacerda S. de Melo2009-09-181-0/+86
| | | | | | | | | | | | | | | | | | | | Added an auto test for the currently supported size policies set. This is a simple test containing a single item anchored to the layout vertical and horizontally. The size policies are set, then the item's minimum, preferred and maximum sizes are compared to the expected ones, according to each policy. Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
* | Stabilize testOlivier Goffart2009-09-171-4/+1
| |
* | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Tom Cooksey2009-09-1710-23/+3364
|\ \ | | | | | | | | | | | | Conflicts: tests/auto/qtwidgets/tst_qtwidgets.cpp
| * | Fixed the invalid license header.Trond Kjernåsen2009-09-171-39/+39
| | | | | | | | | | | | | | | | | | This caused the tests/header test to fail. Reviewed-by: Kim
| * | Clean up my previous commit (remove comment and whitespace fix)Jan-Arve Sæther2009-09-171-3/+1
| | |
| * | Fix the scrollTo() test function on Windows.Jan-Arve Sæther2009-09-171-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the QTRY_COMPARE was added, the size of the view suddenly became a hard requirement. However, this reqirement was not met on windows, since the forcedSize was smaller than the minimum size allowed for the view. Thus, it would never have its size set to forcedSize and the QTRY_COMPARE would fail.
| * | Fixed a bug in QToolTip when internal tool tips where reused.Trond Kjernaasen2009-09-171-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | If a tool tip is to be reused, it *has* to be visible otherwise it *may* get destroyed by the expiration timer before the timer is reset. The tst_qtooltip::setPalette() test triggered this obscure bug under Windows. Reviewed-by: Kim
| * | Implement hasConflicts().Jan-Arve Sæther2009-09-171-1/+43
| | |
| * | Merge branch 'orbit-fixes' into 4.6Jan-Arve Sæther2009-09-173-0/+3097
| |\ \