summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Remove Q_ASSERT from qtesselator autotestJason McDonald2011-05-051-1/+3
| | | | | | | | | If the test data is incorrect, print a meaningful warning into the test output. Change-Id: Ibfe64ef41a0ff3eb47c2385d1c31191334a675a8 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from exceptionsafety_objects testJason McDonald2011-05-051-3/+6
| | | | | | | | Report a fatal error in all builds, not just in debug builds. Change-Id: Iad990e2d3b29a55e995254d466e967a4a722bb23 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT in gestures autotestJason McDonald2011-05-051-4/+12
| | | | | | | | | | Rather than aborting on a bad gesture event in debug builds and ignoring the error in release builds, record a count of bad events and fail the test if the count is non-zero at the end of the test function. Change-Id: I6ddd46a5a656185c13eae4bbbb496b986a0c92f6 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QTreeView autotestJason McDonald2011-05-041-5/+9
| | | | | | | | | Issue a meaningful fatal error in preference to aborting in debug mode builds and crashing in release mode builds. Change-Id: I7bb04e1e222fd6167be19b5d88caac27b43d88df Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qtesselator autotestJason McDonald2011-05-041-1/+2
| | | | | | | | | If the test data is incorrect, print a meaningful error message into the test output. Change-Id: I505a86b4411619d3c3be9541c96c082f92589ff7 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QScriptable autotestJason McDonald2011-05-041-6/+21
| | | | | | | | | | | | | The helper class expects a valid script engine to be available and attempted to verify this with Q_ASSERT (which does nothing in release mode) and QVERIFY (which should only be used directly in test functions). This commit makes the helper class avoid using an invalid engine and catches the problem later by verifying that the last script engine used by the scriptable class was valid. Change-Id: I849df32b141b7801b9b5a92f44ff325397e32f2d Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove mention of Q_ASSERT in QTableView test.Jason McDonald2011-05-041-2/+2
| | | | | | Change-Id: If27cb7031cdde222d1dd988188569dca4b1fb6d9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QXmlStream autotest.Jason McDonald2011-05-041-3/+2
| | | | | | | | | Report a fatal error in all builds rather than only in debug mode builds. Change-Id: I6b3a999dd3ccf00ae66a86b43c125d7082cf0ae5 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qdeclarativexmllistmodel testJason McDonald2011-05-041-1/+4
| | | | | | | | | Report a meaningful warning in all builds rather than aborting in debug builds and doing nothing in release builds. Change-Id: I14aa7bc8699f5307e1ec34b18006b9fbbd8aca8e Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from ecmascript test.Jason McDonald2011-05-041-4/+0
| | | | | | | | | These Q_ASSERT's were redundant as the test functions that call these functions already verify that "value == 0". Change-Id: Ic23e539c5814153d67fea8156ade0783f91d7b83 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from xmlpatterns autotestJason McDonald2011-05-041-4/+4
| | | | | | | | | Verify initial state in initTestCase() rather than asserting in the test class's constructor. Change-Id: Ic7612a5368e35b2abda96828d2a95690baeaf6a9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from qtestlib selftestsJason McDonald2011-05-041-3/+4
| | | | | | | | | Report a fatal error in all builds rather than just in debug mode builds. Change-Id: Ie54e55ea2dd13bbb12e4265278db832ac1297c28 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove unused code from QXmlStream autotestJason McDonald2011-05-041-15/+2
| | | | | Change-Id: I719e502ef14848a22d41de71245fe6b6758c8d6b Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qxmlsimplereader autotestJason McDonald2011-05-041-10/+14
| | | | | | | | | Verify the success of setting the document content in the test function rather than using Q_ASSERT. Change-Id: I25e017e7f92803867a998b4f09ad9f717212a9bc Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QXmlInputSource autotestJason McDonald2011-05-041-3/+1
| | | | | | | | | Report a fatal error in all builds rather than aborting in debug mode builds only. Change-Id: I53b348f077c6533433e32bbebd159066a2bc2c37 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QLibrary autotestJason McDonald2011-05-041-1/+1
| | | | | | | | | Report a regular test failure rather than aborting when an unknown operation is requested. Change-Id: I3678f42f9e9f895d8d0d49a768d4c8b575d1863f Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QSharedPointer autotestJason McDonald2011-05-041-1/+2
| | | | | | | | | Report a meaningful fatal error instead of aborting in debug mode builds and failing silently in release mode builds. Change-Id: I0f939dc40810f072a3e24aeba085191793c49ef3 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QThread autotestJason McDonald2011-05-041-1/+1
| | | | | | | | | Report a meaningful fatal error instead of aborting in debug mode builds and failing silently in release mode builds. Change-Id: If9a6c0655e021b3bb6b7d894aefd9bbcc58e4605 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QWizard autotestJason McDonald2011-05-041-10/+11
| | | | | | | | | | Combine the two checking functions (check and checkInvariant) and have the resulting check function return a bool instead of asserting so that the test function can QVERIFY and fail gracefully. Change-Id: Ib069b5424483ba6ffb9caf75036c4f325e9dba51 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove mention of Q_ASSERT in commentsJason McDonald2011-05-041-1/+1
| | | | | | | | This will make it easier to check for stray Q_ASSERT's in the future. Change-Id: I5ddafe1bf26819566460920deae8ff448008c93f Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QVariant autotest.Jason McDonald2011-05-041-5/+8
| | | | | | | | | Print a meaningful warning message instead of aborting in debug mode builds and failing silently in release mode builds. Change-Id: I44143c5fbe6b6af87bdf5bd231cfaf9a3c9c33f8 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QTextOdfWriter autotestJason McDonald2011-05-041-4/+7
| | | | | | | | | If the <dummy> tag can't be found in the data, return an empty string rather than asserting, so that the test fails gracefully. Change-Id: I536f08c9c3e942817680849d96d035999d4994db Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qtesselator autotestJason McDonald2011-05-041-2/+6
| | | | | | | | | | If the test data is incorrect, print a meaningful warning into the test output instead of deferencing an iterator beyond the last element in the list. Change-Id: I7be4f282639453de6d8240a2f17253025b415337 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qsslsocket autotest.Jason McDonald2011-05-041-2/+2
| | | | | | | | | Make the server thread exit early if the socket is invalid. This will make the test fail gracefully instead of crashing. Change-Id: Ia9564c94dd32d65e6e9bdb4a2410f1512409546c Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from qsharedpointer autotestJason McDonald2011-05-041-4/+10
| | | | | | | | | Report a meaningful warning message into the test output rather than aborting in debug mode and doing nothing in release mode. Change-Id: I6883fccbce0139c763f36f6839bb3452d8f69c1c Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from V8 autotestJason McDonald2011-05-041-1/+1
| | | | | | | | | Replace Q_ASSERT with QTest::qVerify, in line with the rest of this test function. Change-Id: Ia39e62efb9945f72a6a93fddddf36488cd456965 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from qscriptclass autotestJason McDonald2011-05-041-4/+2
| | | | | | | | | Allow the extension() function to return a null QVariant, which will cause the test to fail gracefully. Change-Id: Ide9ef69c48f4bdd5a000f525fe9f395c27854da9 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QObject autotest.Jason McDonald2011-05-041-2/+20
| | | | | | | | | | | | | The Receiver class has two slots that aren't meant to get called during the test (they're there to catch broken parsing of slot names). Rather than asserting when one of them gets called, which does nothing in a release mode build, this commit makes the slots record the number of times they were called (as for the other slots in the test) and fails the test gracefully if either of those slots was called. Change-Id: Ia0393026cb96ffdc6190b5e7bd951f75d231b11e Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT's from QMetaType autotest.Jason McDonald2011-05-041-5/+27
| | | | | | | | | Instead of asserting in debug mode and doing nothing in release mode, put specific warnings in the test output and fail the test gracefully. Change-Id: I453a0ab7ddef5b2acf55f77f71a59a940d93ae54 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QMetaObject autotest.Jason McDonald2011-05-041-2/+12
| | | | | | | | | Issue a helpful warning rather than ignoring the error in release mode builds. Change-Id: Iea7bf4d63f8227abaf7dcf1700c5fef62763afad Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Change Q_ASSERT to QVERIFY in QMenu test.Jason McDonald2011-05-041-1/+1
| | | | | | Change-Id: Ifc08d4eabd8565cfd242ec2e70cf597e92f28fe3 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qitemview autotestJason McDonald2011-05-042-7/+19
| | | | | | | | | | | | Allow createView() to return a null view on failure (which it already did in release mode builds), but fail the test gracefully instead of crashing when a null view is returned. Also reordered the code slightly to put all the QFETCH's together. Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern Change-Id: I3a41c738cb0e4e860db2342b30817a804b20f30d
* Remove Q_ASSERT from qitemmodel autotestJason McDonald2011-05-042-1/+12
| | | | | | | | | | Allow createModel() to return a null model on failure (which it already did in release mode builds), but fail the test gracefully instead of crashing when a null model is returned. Change-Id: Iaa0ec31183e0c90fcea512223d01e07ed188a380 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove mention of Q_ASSERT from qheaderview autotestJason McDonald2011-05-041-1/+1
| | | | | | Change-Id: I3a97411c0b53345bffbadb60a3e7caabfb0441d2 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove dead code from qgraphicsgridlayout autotestJason McDonald2011-05-041-33/+0
| | | | | | Change-Id: I230d1ec9dfd5df2a0fac161a03090308b7f07a1e Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qgraphicsanchorlayout testJason McDonald2011-05-041-1/+3
| | | | | | | | | | | Q_ASSERT will only catch a violation of the precondition of the checkReverseDirection function in a debug build. This commit replaces the Q_ASSERT with QVERIFY'ing the precondition (that the widget has a layout) before calling the function. Change-Id: Ibaa2b52b7d67fa20784e0df022e8c8169da0e50e Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove dead code from qscriptenginedebugger testJason McDonald2011-05-031-14/+0
| | | | | | | Remove code made obsolete by 2d1839e850ac632a13ff0ac3096d8419bff5082d. Change-Id: Ic889c81f0507eb91028fa6b6c4cbf6ae71a728b0 Reviewed-by: Rohan McGovern
* Remove Q_ASSERTs from qgraphicsanchorlayout1 testJason McDonald2011-05-031-16/+6
| | | | | | | | Sanity-check the test data when using it rather than when creating it. Change-Id: Ie5d5e1ff3fc439d196096f17cb6f97680927a90c Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Only ignore warning when it can actually be produced.Jason McDonald2011-04-211-1/+1
| | | | | | | | | | Fix regression introduced in 3ca51d87296bcb3098d7de14294fef9294fd5ed4. The warning is only generated in builds where QT_NO_DEBUG is not defined *and* the target is not Mac OS X. Change-Id: I7245f2eab8ea47ab7495fef874b2f8a29186b659 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Use meaningful variable namesJason McDonald2011-04-211-21/+21
| | | | | | | | Make the meaning of the code more obvious and avoid a compiler warning about the variable "w" being overridden. Change-Id: Ib76d3aa1cae46e263b2ab61b675d9ef74032aacc Reviewed-by: Rohan McGovern
* Fix logic error in large file autotestJason McDonald2011-04-211-3/+2
| | | | | | | | | | | | | | The function generating data blocks was filling the block to 16 bytes short of the blockSize, then appending three 8 byte values, causing the block to grow 8 bytes beyond blockSize and then truncating it back to blockSize. This commit makes the code fill the block to 24 bytes short of the blockSize, so that the block will always end up at the correct size and truncation is not needed. Change-Id: I9fe6e6d6cf7bc445513b53e0a910d205c4c8002f Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QDom autotestJason McDonald2011-04-211-11/+7
| | | | | | | | | The Q_ASSERT here should really be a QVERIFY. Expanded the trivial helper function to make it more obvious what the test does. Change-Id: Ia6017fe820a83b4d6101e5edcfcb68993eef233a Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from datetimeedit autotestJason McDonald2011-04-201-9/+2
| | | | | | | | | | The assert and the last four parameters of makeList() are not needed. The function is always used to make lists of three integers and the data are all >= 0. Change-Id: I93ae5a5f541cde2ff61bd9dd21164ed4a9b57403 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qcopchannel autotestJason McDonald2011-04-201-1/+5
| | | | | | | | | | | This code would assert in a debug build and potentially crash in a release build. (The behaviour of QStringList::at() with an out-of-bounds index is undefined.) This commit makes the program exit with a useful error message in all builds. Change-Id: Ia57a2e5693eb25d3eb0b9ba701ed485dfbc1e846 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from QCompleter autotestJason McDonald2011-04-201-4/+6
| | | | | | | | | | If a combobox had no completer, this test would assert in a debug build and crash in a release build. This commit makes the test report a test failure and avoid terminating in all builds. Change-Id: Ib2924412e3d55f10875675cb65079259cd4ef552 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Only ignore warning when it can actually be produced.Jason McDonald2011-04-201-0/+2
| | | | | | | | | | Fix regression introduced in 3ca51d87296bcb3098d7de14294fef9294fd5ed4. The warning is only generated in builds where QT_NO_DEBUG is not defined. Change-Id: I9aa3db369094f4046062b5dc1dc694342208ee45 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qcompleter autotest.Jason McDonald2011-04-201-1/+3
| | | | | | | | | Replace obscure failure on bad test data in debug builds with an informative warning in all builds. Change-Id: I9001820f34de2f78bf296a2f0e095ce73d9ac4bd Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Remove Q_ASSERT from qatomicint/pointer autotestsJason McDonald2011-04-202-4/+2
| | | | | | | | | | | Some code in these tests is not intended to be executed, but rather to detect compiler warnings. Instead of having an obscure fatal error if this code is run in a debug build, it now has a clear fatal error if run in any build. Change-Id: I1c9d27bb14ebf3313865b68e3e57668ba1d14e25 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
* Fix remaining warnings in accessibility autotestJason McDonald2011-04-191-32/+40
| | | | | | | | Prevent warnings about unhandled accessibility events by managing object lifetimes appropriately. Change-Id: If72a2a6a76527ff746b99634c2d0895354570724 Reviewed-by: Rohan McGovern
* Ignore expected warning in accessibility autotestJason McDonald2011-04-191-0/+2
| | | | | Change-Id: I4b614766d2451dde51ab1207267301a2fe7dd0f6 Reviewed-by: Rohan McGovern