summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added support for six-parameter radial gradients.Samuel Rødal2011-05-104-2/+128
| | | | | | | | | The extended radial gradients conform to the radial gradient specification in HTML 5 canvas. Task-number: QTBUG-14075 Reviewed-by: Andreas Kling (cherry picked from commit da55c1ea92474e989e5582b02815936bbf584405)
* Improved gradient table generation performance for two-stop gradients.Samuel Rødal2011-05-101-5/+34
| | | | | | | | | Two stops is a fairly common case so we gain quite a bit by special casing it. Improves performance by 10 % in parcycle benchmark, and by 90 % in a synthetic benchmark. Reviewed-by: Andreas Kling (cherry picked from commit 5b74a70ac630073582be56f8a0539624a1080185)
* Fix autotest breakage in QTableWidgetPierre Rossi2011-05-101-0/+2
| | | | | Reviewed-by: gabi (cherry picked from commit 76a2a3278107d2713e6d999cf82db4e134c3d034)
* QFileSystemModel: Handle QDir::NoDot and QDir::NoDotDot for setFilterJonathan Liu2011-05-101-4/+27
| | | | | | | | | Add support for QDir::NoDot and QDir::NoDotDot for setFilter in QFileSystemModel. Task-number: QTBUG-14760 Reviewed-by: Frederik (cherry picked from commit b60d82fd56897b1a1d3cc730172f71c27a497ede)
* Remove Qt3ism: setToggleButton - setCheckableFrederik Gladhorn2011-05-101-8/+7
| | | | | Reviewed-by: Jan-Arve (cherry picked from commit d8941c0c0e3e3019a2048ae470e4e46111a2cfcf)
* Fix autotest.Frederik Gladhorn2011-05-101-1/+1
| | | | | I changed a string by accident. (cherry picked from commit 77cbbe9e47c62047ff88973d8158c42dc30fbd00)
* Make navigation in TabWidgets consistent.Frederik Gladhorn2011-05-101-3/+90
| | | | | | | | navigate would not return the right index in the parent if the current widget was not the visible one. Reviewed-by: Jan-Arve (cherry picked from commit fdeeaa9d61efea9cca783a1d4098ae505df24390)
* Fix text for checkable buttons, unit tests.Frederik Gladhorn2011-05-101-132/+158
| | | | | | | | Return Check/Uncheck for checkable buttons. Partially revive the buttons unit test. Reviewed-by: Jan-Arve (cherry picked from commit 6040eeebfb1ab3be3906295c373033cd5b5d9dc3)
* Window and Application fixes for accessibility.Frederik Gladhorn2011-05-101-0/+37
| | | | | | | | Return app name instead of window title for root accessibility object. Return Window as accessible type for the main window. Reviewed-by: Jan-Arve (cherry picked from commit 9a5b0d7a579572cd7e7faf869ab1a6684800f592)
* Call QAccessible::updateAccessibility when changing accessible name.Frederik Gladhorn2011-05-101-0/+5
| | | | | Reviewed-by: Jan-Arve (cherry picked from commit e783275cfb71e7325472b3aea54e109a7a854bf7)
* Unit test for characterRect in Accessible TextInterface.Frederik Gladhorn2011-05-101-0/+5
| | | | (cherry picked from commit 8888cef411ce1d1fc898970429e951f9ef623b0e)
* Use the virtual API to clear a selection.Stephen Kelly2011-05-101-0/+54
| | | | | | Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> Merge-request: 980 (cherry picked from commit e3cd651d92a9e550fe52360d1be6ae41d0f2ab85)
* Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-105-88/+88
|\ | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Rename QGlyphs -> QGlyphRun
| * Rename QGlyphs -> QGlyphRunEskil Abrahamsen Blomfeldt2011-05-105-88/+88
| | | | | | | | | | | | | | | | | | | | | | API clean-up for QGlyphRun: 1. QGlyphs -> QGlyphRun 2. QGlyphRun's font()/setFont() -> rawFont()/setRawFont() 3. QPainter::drawGlyphs() -> drawGlyphRun() 4. QTextLayout and QTextFragment's glyphs() -> glyphRuns() Reviewed-by: Jiang Jiang (cherry picked from commit 84ef364302728b68d2d29ea9c4ccbec32c7bb115)
* | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-stagingQt Continuous Integration System2011-05-101-0/+79
|\ \ | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging: Respect capacity in QVector::append().
| * | Respect capacity in QVector::append().Liang Qi2011-05-101-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug in QVector::append(), it should use the capacity for new size, when it is implicit shared and capacity is bigger than the new size. Autotest included. Task-number: QTBUG-11763 Reviewed-by: joao Reviewed-by: Olivier Goffart
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-102-20/+38
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Add internal documentation for QUnifiedToolbarSurface. Fix the autotest condition. Change the repaint() call to an update(). Fix the update() autotest for raster. Change the repaint() to an update(). Set the default graphics system to raster. Revert "Switch the default graphics system to raster on Mac." Fix an race condition in the auto test. Fix an race condition in the auto test. Fix a race condition when the main window is being destructed. Switch the default graphics system to raster on Mac.
| * | Fix the autotest condition.Fabien Freling2011-05-101-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous preprocessor directive was aimed to exclude Mac OS X. With the raster engine, the behavior is unified and we don't need to have a separate path for Mac OS X/Cocoa. The new condition excludes only Mac OS X with a graphics system other than raster or Carbon. Reviewed-by: Jiang Jiang (cherry picked from commit 2c6af885d959f90b801c74dc5d389a720dc9fd1d)
| * | Fix the update() autotest for raster.Fabien Freling2011-05-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the CoreGraphics engine, we expect the test to fail with update(), but with the raster engine the behavior is the same across platforms. Hence we don't need a special case for Mac OS X with the raster engine. Reviewed-by: Samuel Rødal (cherry picked from commit 75d2387fbf005b022437855ab6433790372639f8)
| * | Fix an race condition in the auto test.Fabien Freling2011-05-101-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Deleting the page in the wizard without removing it first leads to a crash when the wizard tries to access a deleted page. Reviewed-by: Samuel Rødal (cherry picked from commit 4024a08239c3e69bb2e0ca045ccbdf3fc900f675)
| * | Fix an race condition in the auto test.Fabien Freling2011-05-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Deleting the page in the wizard without removing it first leads to a crash when the wizard tries to access a deleted page. Reviewed-by: jasplin (cherry picked from commit 3bff1637cd49617d334c1be63c20e008fac93be1)
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-stagingQt Continuous Integration System2011-05-094-4/+234
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging: Skip test on MacOS due to problems with corewlan plugin Fix QNetworkConfigurationManager usage outside main thread first Update QTBUG-17223 for Qt 4.8 fix tst_qnetworkreply::httpProxyCommands autotest Send User-Agent from the network request in http proxy CONNECT command Add autotests for configuration dependent network proxies Fix QNetworkReplyImpl error handling Enable per network configuration proxy settings in QNetworkAccessManager Allow a network configuration to be included in a proxy query Fix error handling in write for socks socket engine
| * | Skip test on MacOS due to problems with corewlan pluginShane Kearns2011-05-091-1/+5
| | | | | | | | | | | | Reviewed-by: Cristiano di Flora
| * | Fix QNetworkConfigurationManager usage outside main thread firstShane Kearns2011-05-092-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QNetworkConfigurationManager creates the engines loaded from plugins as objects in the main thread. If a QNetworkConfigurationManager instance is created in a worker thread without any instance previously existing in the main thread, then it is uninitialised until the main thread has run. This causes allConfigurations() to return an empty list if called immediately after instantiation, for example. This fix initialises the plugins using blocking queued connections, which causes the worker thread to block until the initialisation function has been called in the context of the main thread. Deadlock is possible if the main thread is for some reason waiting on the worker thread, but it will not deadlock on QNetworkConfigurationManager's mutex. If this is a problem for an application, it should use QNetworkConfigurationManager from the main thread first to preload the plugins. Task-number: QTBUG-18795 Task-number: QTBUG-18799 Reviewed-by: Cristiano Di Flora
| * | fix tst_qnetworkreply::httpProxyCommands autotestShane Kearns2011-05-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to architecture changes in Qt 4.8, clearing the proxy before the request is complete causes the http connection to not use any proxy. The issue is that the proxy isn't resolved until after the bearer has been started (which is correct in the general case, as system proxy is unknown until that time). Also increased the test's timeout from 1 second to 15, as starting a bearer can be slow. Reviewed-by: Markus Goetz
| * | Send User-Agent from the network request in http proxy CONNECT commandShane Kearns2011-05-091-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some proxies can discriminate based on the User-Agent when sent a CONNECT command for establishing a HTTPS connection. With this change, if the User-Agent header is set in the QNetworkRequest then it will be passed to the http socket engine for use in the connect command sent to the proxy. As before, "Mozilla/5.0" will be used by default when no user agent has been set. Task-number: QTBUG-17223 Reviewed-by: Markus Goetz
| * | Add autotests for configuration dependent network proxiesShane Kearns2011-05-092-1/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. test that systemProxyForQuery returns something for all configs 2. test that QNetworkAccessManager uses the settings for the configuration it was started with. Task-number: QTBUG-18618 Reviewed-by: Peter Hartmann
* | | Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-stagingQt Continuous Integration System2011-05-071-0/+36
|\ \ \ | |/ / |/| / | |/ | | * 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging: Fix QRawFont::setPixelSize() on Mac
| * Fix QRawFont::setPixelSize() on MacEskil Abrahamsen Blomfeldt2011-05-061-0/+36
| | | | | | | | | | | | | | | | | | When refactoring the setPixelSize() code of QRawFont, it was broken on Mac. To avoid making the same mistake again, I've added a simple autotest to check that the pixel size is actually set. Reviewed-by: Jiang Jiang (cherry picked from commit 821b8b540af491ce60d35bd84d3c91399ecc0d16)
* | Merge remote-tracking branch 'mainline/master' into earthOlivier Goffart2011-05-0616-6325/+420
|\|
| * uic: Remove Q3Support.Friedemann Kleint2011-05-069-6304/+0
| | | | | | | | Remove code and tests.
| * Remove misspelled comment in tst_qtextdocument.cppEskil Abrahamsen Blomfeldt2011-05-051-1/+1
| | | | | | | | | | | | | | | | | | The comment was copy-pasted, spelling error and all, from the example in the bug report, and really doesn't make any sense at all in this context. Reviewed-by: TrustMe (cherry picked from commit 7ac511d8d906575dff1a02361e31251b244d3b3a)
| * Merge branch 'master' of scm.dev.nokia.troll.no:qt/qtbase-stagingGunnar Sletta2011-05-041-0/+26
| |\
| | * Include pixel size of font in exported HTML from QTextDocumentEskil Abrahamsen Blomfeldt2011-05-041-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you copy-pasted rich text in which the font size had been set using setPixelSize() the font size would be mysteriously forgotten. The pixel size property in QTextCharFormat was added ad hoc, and not integrated in the HTML exporter. Task-number: QT-4792 Reviewed-by: Gunnar (cherry picked from commit 5aa5c2e2935c1829cc6965198968699f17c24ec0)
| * | Merge branch 'master' of scm.dev.nokia.troll.no:qt/qtbase-stagingGunnar Sletta2011-05-041-2/+4
| |\|
| | * Moved QtUiTools to CONFIGPrasanth Ullattil2011-05-021-2/+4
| | | | | | | | | | | | | | | | | | QtUiTools is a staic library now. If this is added to QT variable qmake will treat this as a framework on Mac. This patch is to avoid that.
| * | Make pixel size a qreal in QRawFontEskil Abrahamsen Blomfeldt2011-05-021-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | The pixel size in the font engines is already a floating point value. For maximum flexibility, we should expose this in the public API. Task-number: QTBUG-18817 Reviewed-by: Jiang Jiang (cherry picked from commit ac9e63b58533a3215106ed9da82cff3a3e3dda3a)
| * | Another ugly hack to make bidi cursor work with Core TextJiang Jiang2011-04-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the text is wrapped with LRE/LRO/RLE/RLO override/embed marks, Core Text in Mac OS X 10.5 doesn't produce an empty glyph at the beginning of the glyphs (while it does in Mac OS X 10.6), thus we need to prepend an empty glyph here, otherwise cursor position calculation will consider the first two characters as a ligature of the same glyph. Reviewed-by: Eskil (cherry picked from commit a36ac6c34bafa801c2c30d76f59e4a3594efc4d5)
| * | Support visual cursor movement for BIDI textJiang Jiang2011-04-293-1/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bidi input can in some contexts be more intuitive if the cursor works in visual way: pressing left arrow key always make cursor move one character to the left regardless the language of text, pressing right arrow key always make cursor move to the right. It is also the behavior of Mac OS X. Based on the above reason and requests from Symbian we implemented this support for visual movement in BIDI text. 3 public properties are added to QTextDocument, QTextLayout and QLineEdit respectively: - QTextDocument::defaultCursorMoveStyle can be used to control the cursor behavior in all widgets based on QTextDocument, like QTextEdit, QPlainTextEdit, etc. When set to QTextCursor:: Visual, it will enable visual movement for all the cursors in the corresponding text edit. Default is QTextCursor::Logical. - QTextLayout::cursorMoveStyle is used for low-level cursor manipulation. When set to Visual, it will enable visual movement behavior for all the cursor related methods, including cursorToX, xToCursor and drawCursor. Default is Logical. - QLineEdit::cursorMoveStyle is used to control cursor movement behavior in QLineEdit. Default is Logical.: Task-number: QTBUG-13859 Reviewed-by: Eskil (cherry picked from commit c480dd641f5d22d1ee72cb27bf39e24c6df65658)
| * | Disable tst_QPixmap::onlyNullPixmapsOutsideGuiThread on MacJiang Jiang2011-04-291-2/+2
| |/ | | | | | | | | | | | | No need to check it anymore after the switch to raster engine. Reviewed-by: Eskil (cherry picked from commit e004701bd7ba9e4a7cd5ac1bf784829feae16cae)
* | HTTP auto tests: do not load resources from cache that must be revalidtdPeter Hartmann2011-05-042-6/+6
| | | | | | | | | | | | | | | | | | | | | | The header field "Cache-Control: must-revalidate" is a strict requirement for loading the resource from the server, and not reading it from the cache without revalidating first. With this patch, PreferCache will load such from the network instead of loading them from the cache, and AlwaysCache will throw a ContentNotFound error. Reviewed-by: Markus Goetz Task-number: QTBUG-18983
* | QNetworkCookie: allow spaces in unquoted valuesPeter Hartmann2011-05-041-0/+8
| | | | | | | | | | | | | | | | | | | | We should follow http://tools.ietf.org/html/draft-ietf-httpstate-cookie-23 , which says parse the value until reaching the next ';' or the end of the line. Other cookie implementations allow spaces in unquoted values as well. Reviewed-by: Martin Petersson Task-number: QTBUG-18876
* | Revert "HTTP caching internals: fix logic for PreferNetwork and PreferCache"Peter Hartmann2011-05-031-0/+2
| | | | | | | | | | | | This reverts commit e5d27e7aeac984e46f3aa8de20160cc00fc63155. do not change the cache logic fundamentally.
* | QNAM HTTP: Fix upload progress signalMarkus Goetz2011-05-031-14/+20
|/
* Only run JSC benchmarks if access to the source codeMarius Storm-Olsen2011-04-272-6/+13
| | | | | | When modularized, the benchmark test case might not have access to the JavaScriptCore source code. So, make sure the test case still compiles in this case.
* Remove not needed .pri includeMarius Storm-Olsen2011-04-271-2/+0
|
* Add tst_headersclean for each moduleLiang Qi2011-04-273-0/+87
|
* Modularized tst_compilerwarningsLiang Qi2011-04-271-0/+69
|
* Modularized tst_bic and add some helper functions for global testLiang Qi2011-04-271-0/+12
|
* Fixed maketestselftest after guiapplauncher was made a global test.axis2011-04-271-1/+2
|