summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
...
* remove double-string-double conversion from QDeclarativeListModelFlorian Hänel2012-07-241-0/+4
| | | | | | | | | we do a double-string-double conversion in QDeclarativeListModel which introduces precision errors if that conversion is lossy, e.g. ecvt. is used Change-Id: Ie871ebbb04695f56fc7b49b9d788037da4a857c0 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Test that the package configs for QtQuick1 work.Stephen Kelly2012-07-205-0/+91
| | | | | Change-Id: Ifc255030d3c1161cd879c8c8c054fc4e0206ca31 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QtQuick1: Use new qWaitForWindowExposed/Active() functions.Friedemann Kleint2012-07-2012-163/+114
| | | | | Change-Id: I020c82c465adaf6490a54871869bb6590542675f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* tst_examples: Remove dead code.Friedemann Kleint2012-07-181-13/+0
| | | | | | | | The test does no longer use external binaries. Change-Id: Ic5fd4aceb62ea86011d469e25c6e3e27363b7855 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Fix objectName test in tst_qdeclarativeecmascript.Glenn Watson2012-07-131-1/+0
| | | | | | | | | | | The QtQuick1 library relied on special case handling of the objectName property in qtbase. With Qt5, there is a normal notify signal for objectNameChanged. Remove the QtQuick1 special cases and fall through to the default code path. Task-number: QTBUG-26334 Change-Id: I70f31947b6c74c7125d6f99a33e9b02d7ef52273 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QtQuick1: Increase timeout in tst_qdeclarativetext.Friedemann Kleint2012-07-031-1/+1
| | | | | Change-Id: Ie3e8f2de8f61c80ef80ff400c78f028354cbd1ff Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Improve qmlvisual test.Friedemann Kleint2012-07-021-38/+48
| | | | | | | | | Locate binary, pass options according to platform. Task-number: QTQAINFRA-428 Change-Id: I9064c87f1b9238b206aae653b7079b064965d85d Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Add headersclean autotest.Toby Tomkins2012-06-273-0/+54
| | | | | Change-Id: I7f3526118b94cda8033286f3e4dae9a2743cfb30 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Remove insignificant flag from tests that are passing.Toby Tomkins2012-06-2712-24/+0
| | | | | Change-Id: I234857e61b6a58037828b14478984e54b8a15c8c Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Modify all attribute error messages and remove insignificant test flag.Toby Tomkins2012-06-2710-18/+9
| | | | | Change-Id: I8b4e2eaad11174ca82f0109394de4b333087bd8c Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Remove expect fail and insignificant test flag.Toby Tomkins2012-06-272-3/+0
| | | | | | | Task-number: QTBUG-19538 Change-Id: I2fa712c804fae17c7e59019a8510cb195b2e5eaf Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Replace insignificant test with QEXPECT_FAIL.Toby Tomkins2012-06-272-2/+1
| | | | | | | | Task-number: QTBUG-26334 Task-number: QTQAINFRA-428 Change-Id: I9094cfd686a2e95dcad69efc0226f1af9c70cd33 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove insignificant flag for error test on Windows.Glenn Watson2012-06-261-2/+0
| | | | | | | | The test is now passing on Windows, so doesn't need to be marked as insignificant. Change-Id: I596fd9c50b586f0dd0bf275353bd1dc0b4fd58d9 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Fix error test on Windows.Glenn Watson2012-06-222-1/+2
| | | | | | | | Add missing .gitattributes file to ensure the test data file is checked out with LF line endings on Windows. Change-Id: I9ece655dbc8657d6e70c58ce1ada06ee021c92ad Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Propagate left key presses to the parent item when TextInput is empty.Marcel Schuette2012-05-312-1/+23
| | | | | | | | | Don't overwrite the ignore value once it's been set to true. Backport from QtQUick2 to QtQuick1 in Qt 5 (commit a7017465152d544a4217d5ce4f6f84b80cb9b8b9) Change-Id: Ia93e234773bb75040f889cc03853be311dbafd70 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
* Set explicit testcase.timeout for slow testsRohan McGovern2012-05-314-0/+4
| | | | | | | | | | | | | We'd like to decrease the default timeout for tests in the Qt Project CI so that we waste less time waiting for hanging tests. Tests which genuinely take a long time to run, such as these, should have their timeout explicitly set in their .pro file. Change-Id: I21b4e8c029ad5ec0f76d4139e86521134fe1e67a Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Removed CONFIG+=parallel_test from suspected parallel-unsafe tests [2]Rohan McGovern2012-05-234-9/+0
| | | | | | | | | These tests have failed a parallel stress test and may contribute to instability in test runs. Change-Id: I809e8690cdbb154e692ae8662b9d0699630146d4 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fixed incorrect autotest name.Rohan McGovern2012-05-231-1/+1
| | | | | | | | | The qdeclarativepixmapcache test has been named "tst_qdeclarativeviewer" for some time. Change-Id: I883db9d8d86344f49819d277789e7faf10e1f11a Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Removed CONFIG+=parallel_test from suspected parallel-unsafe testsRohan McGovern2012-05-228-15/+0
| | | | | | | | These tests have failed a parallel stress test and may contribute to instability in test runs. Change-Id: Ib5282122fd0a0f9f0a9795713ed4570545f0a9fe Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QtQuick1: Fix qdeclarativefontloader test.Friedemann Kleint2012-05-212-18/+26
| | | | | | | | | | | | | | | | - Base it on QDeclarativeDataTest, getting rid of the SRCDIR defines. - Remove Symbian part. - Specify local file font URL correctly. - Remaining tests were fixed by qtbase: 4f1820e3a77b3fdda32a1b935502b187e73059cf (Implement application font loading for Windows) Task-number: QTBUG-24475 Change-Id: If04f4bc024f106ad14de1904b2f17ec0cc175962 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Ensure scale property is initializedMatthew Vogt2012-05-142-2/+2
| | | | | | | Also, do not fail flickable test if a flick is initiated. Change-Id: I2701bfa174dd42b462d21a8d39211ab85fa1f282 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Removed CONFIG+=parallel_test from parallel-unsafe testRohan McGovern2012-05-141-2/+0
| | | | | | | | This test is marked with CONFIG+=parallel_test, but it is observed to fail sometimes if run concurrently with other tests, and pass otherwise. Change-Id: I7d32d884bc8163125533244097fe49a073b7882d Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* QtQuick1: Fix build warnings.Friedemann Kleint2012-05-104-4/+4
| | | | | | | | - Add missing .json file. - Fix warnings about unused variables, deprecated cast from char*. Change-Id: Ibb5065e604460ff945b3e452b2270d2b7368ea49 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Adapt to _qpa file rename in qtbase.Girish Ramakrishnan2012-05-091-1/+1
| | | | | | | | qtbase change 36547f4eff44361f7a6acd0cff107c0e47561f93 renamed qpa headers. Change-Id: I831fb0942de205662e3598a5ddc5ff646b0c7ae4 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* QtQuick1: Fix deprecation warnings.Friedemann Kleint2012-05-021-2/+2
| | | | | | | Introduced by qtbase:0df1c9f1fa04c06d6105de3f312c6c752a58ad70 Change-Id: I61e330707a49efd09bad0efda386712fba207c8a Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Start running disabled tests again.Jason McDonald2012-04-2325-32/+32
| | | | | | | | | Start running the tests as insignificant tests. This will allow the CI system to collect sufficient data for analysis of which tests are failing and/or unstable. Change-Id: Ib7f34a65939e403aee3d6f5ed5aafc37d8d90264 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Re-enable qdeclarative error test on some platforms.Jason McDonald2012-04-231-1/+1
| | | | | | | | | This test has a stable failure on Windows and passes elsewhere, so re-enable the test everywhere but Windows. Task-number: QTBUG-25421 Change-Id: I2eca0ecbf3049026ef153a2c12fa8694b17ee648 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Re-enable qdeclarativetimer test.Jason McDonald2012-04-231-2/+0
| | | | | | | This test has not failed since CI on qtquick1 began. Change-Id: Ic9b49f84b6ffa19dc2f175a52a243ff6a9274d47 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Re-enable qdeclarativeborderimage test.Jason McDonald2012-04-201-2/+0
| | | | | | | This test has not failed since CI on qtquick1 began. Change-Id: Ie0b36b61578a054e0284106332b106ec54ebe221 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Adapt to Qt5 meta-object changesKent Hansen2012-04-182-14/+14
| | | | | | | | | | | | | | | | | | | | QMetaMethod::signature() has been renamed to methodSignature(), and returns a QByteArray, not const char *. Thew new function QMetaMethod::isValid() should be used to check whether a method is valid (it's a lot cheaper than calling signature()). Also use the new QMetaObject::checkConnectArgs() overload that takes QMetaMethods, not strings, as arguments. Further improvements can be made by using the new functions QMetaMethod::name(), parameterCount() and parameterTypes(), but that will be done in separate commits. Change-Id: I3e4cfbdc7799d8bce747ef37f07d0d097370e409 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix compilation and tests after qtbase/api_changes mergeKent Hansen2012-04-184-9/+9
| | | | | | | | Adapt to QUrl changes, based on how qtdeclarative was adapted in commit 2d393ae042d5badf0862c0f95122f9662042f2a9. Change-Id: I9d1fddf4bbc6d86ac206dca4ac929d180ec12efa Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix text failure due to behaviour change in qtbase.Andrew den Exter2012-04-041-1/+1
| | | | | | | | | http://codereview.qt-project.org/#change,21263 changed the inputMask accessor to not include the default mask character, so the test data needs to be updated to reflect this. Change-Id: I7021f276348542125884dd259523ba42535ae368 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Avoid space between parenthesis and control statement => unbreak JomMarius Storm-Olsen2012-03-284-5/+5
| | | | | | | | Jom doesn't handle that extra space, so avoid it. (Yes, Jom should be fixed too) Change-Id: Ie78b0830832cb88f7a3d96ea9bc63769111f03dc Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* TextInput not to emit selection change signals if values do not changePekka Vuorela2012-03-231-18/+14
| | | | | | | | | Fixed also tests with QTBUG-24036 Test was assuming selectionStartChanged and selectionEndChanged to trigger even if their values did not change. Change-Id: I26e57cfb4ff06ec6c195ec2b0d997885c807670b Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix text editor mouse handler unit testsPekka Vuorela2012-03-232-5/+2
| | | | | | | QTBUG-24035 - tst_qdeclarativetextedit::inputContextMouseHandler test fails. Change-Id: I61ae74f1f4f19586abbdcae79f05f556a9904740 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix QDeclarativeItem::hasActiveFocus().Andreas Aardal Hanssen2012-03-131-0/+28
| | | | | | | | | | | | | | | | | This function returns true if the item (or, in case it's a focus scope, one of its children,) has focus (i.e., will receive key events now), or will receive focus once the scene is activated. It also returns true if the item has not yet been added to a scene, but has subFocus, implicating that someone has called setFocus() on it prior to it being added to the scene; the latter case seen most commonly in unit tests. Task-number: QTBUG-24681 Change-Id: Ia1265158108d5d856b57e34a8efee2545cd0deeb Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name> Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
* Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-131-6/+6
| | | | | | | | | | QDoc now has support for Doxygen style commands for italics, bold and list items. This change applies that change in QDoc to the actual documentation. Task-number: QTBUG-24578 Change-Id: Iae34eb8f2233dd9dbec79e7ab3c324f3f505b4cc Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* Specify global mouse position for QDeclarativeMouseArea auto testJonathan Liu2012-02-281-3/+4
| | | | | | | | | | | The preventContextMenu QDeclarativeMouseArea auto test creates QContextMenuEvent without specifying the global mouse position. As a result, the event's global mouse position is incorrectly set to QCursor::pos(). Change-Id: Ib67fbcf3acf968eb2748426ad0db0e900826b232 Reviewed-by: Martin Jones <martin.jones@nokia.com> (cherry picked from commit f323f01648a33a22ba2b0f4975efe19a1af1b9b5)
* Define Q_QUICK1_EXPORT independentlyMatthew Vogt2012-02-271-1/+1
| | | | | | | | | | | | Define Q_QUICK1_EXPORT and Q_QUICK1_PRIVATE_EXPORT inside the qtquick1 module rather than using the definition in qtbase. This change undefines the definitions from qglobal.h; the undef should be removed once the definitions have been expunged from qtbase itself. Change-Id: I1ee6fa1e513d110d9a298d897a8d3d465290e9ce Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Windows: Fix qdeclarativemoduleplugin testMiikka Heikkinen2012-02-231-1/+1
| | | | | | | | | | | | | | | | The failure was caused by drive letter being wrong case. The whole QVERIFY here was pointless, as all it was doing was verifying what QTest::qFindTestData() returned earlier when resolving the imports directory (path variable), which is in no way relevant to this test - especially as the drive letter case is anyway fixed on the next line. Removed the unnecessary QVERIFY and added equivalent if statement to fix the drive letter case only if it is wrong. Task-number: QTBUG-24471 Change-Id: I15c9fdd5c451723e7e877709280d7483fc769c32 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Windows: Mark qdeclarativefontloader test insignificantMiikka Heikkinen2012-02-231-0/+1
| | | | | | | | | | | | | To make "nmake check" pass without errors, mark the qdeclarativefontloader test insignificant. This needs to be reverted once the underlying issue is fixed and the test passes. Task-number: QTBUG-24203 Change-Id: I4f42ccd9c165044cb7179c8bb160239e94447b42 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Windows: Fix tst_qdeclarativeanchors crash.Miikka Heikkinen2012-02-231-1/+1
| | | | | | | | | | | The test crashed because the test case basicAnchors() uses testFile() function instead of testFileUrl() function to resolve "anchors.qml". All other cases in this test use testFileUrl() to resolve qml files, so changed basicAnchors() test to follow suit. Task-number: QTBUG-24472 Change-Id: Ide73bb27a4a05a4894954170ed204d8b6f60ffe1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Use the declarative_debug config option to enable debug.Andrew den Exter2012-02-224-4/+4
| | | | | | | | | | There doesn't appear to be any straightforward way to install additional prf files to qtbase and declarative_debug.prf is identical to quick1_debug and already present in the qtbase repo. Change-Id: I8332e22f4039c7de18fedb21fe951ff19611ea13 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix build issues related to QT_NO_*MODULE* defines.Andrew den Exter2012-02-225-18/+7
| | | | | | | | | | The QT_NO_XMLPATTERNS and QT_NO_CONCURRENT defines don't exist in Qt5 check for the existance of the modules with QT_XMLPATTERNS_LIB and QT_CONCURRENT_LIB instead of their absence with the old defines. Change-Id: I52bc9932294fe4564e58d06766301e2a0c41f15c Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use new plugin system in QtQuick1.Friedemann Kleint2012-02-2110-17/+22
| | | | | | | | - Use prefix "org.qt-project" for interfaces. - Use new macros, add json files. Change-Id: I157206ad883be16fb85b9b6bffca7200532561e4 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Adapt to QInputPanel -> QInputMethod renamingPekka Vuorela2012-02-153-23/+23
| | | | | Change-Id: Id11fc9ae1be91611fee22d28407e54035e190c71 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove obsolete skip mode parameter from QSKIP calls.Jason McDonald2012-02-152-2/+2
| | | | | Change-Id: I069eeaab0ec25a3360e0604f262f304abeb385c1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Copy qmldir files into build tree with associated plugins.Matthew Vogt2012-02-1527-13/+224
| | | | | | | | | | | | | The qdeclarativemoduleplugin test verifies that the plugins it constructs are correctly imported. Ths requires that the qmldir files that describe the plugins are copied into the build tree along with the plugins they refer to. QML (and .js, where relevant) files must also be copied into the same directory if they form part of the imported module. Change-Id: I827a0b678a17cac42aadc4f2176fdd8bd693aab1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add QDeclarativeDataTest base class to locate test data.Friedemann Kleint2012-02-0936-843/+904
| | | | | | | | | | | | - Remove TEST_FILE and TEST_DATA macros in favour of base class that uses QFINDTESTDATA to locate the data. This avoids repeated searching and handles Windows correctly (executables in release/debug subfolders). - Modeled after an existing class in the QtQuick2 tests (see qtdeclarative\tests\auto\shared\util.*). Change-Id: I9e595953328fb552648cef4c7f712d9000f53832 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Fix QQDeclarativeText expected failure.Andrew den Exter2012-02-091-2/+1
| | | | | | | | | lineHeight isn't supported for RichText textFormat which is the default for auto text with tags so StyledText must be set explicitly. Task-number: QTBUG-21015 Change-Id: Ic34c47170e3d9ccc5958ffc32aa335e228471b72 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>