aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix elements quicktest groups to work with filteringDamian Jansen2011-11-041-49/+45
| | | | | Change-Id: Iaa1b2bf9a3f810f9f3f5c599d2f5b85e30828bc0 Reviewed-by: Daron Andrew Edie
* Fix GravityAlan Alpert2011-11-031-4/+6
| | | | | | | | Now simulates acceleration instead of setting it, and properties are renamed to be consistent with AngleDirection Change-Id: I648aa9122c49b46aa7b7d7796bc25d5bd56bfffe Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Make initialize work despite pending resetsAlan Alpert2011-11-021-1/+0
| | | | | | | | | This allows for the data to be updated instantly, instead of waiting for the reset in the next paint event. This is needed by the QQuickImageParticle autotest to pass stably. Change-Id: I554eb9d9ddbfc6ba06264dedafb14498685e04cf Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix SizeRootObjectToView modeAlan Alpert2011-11-021-1/+0
| | | | | | | | | | It is not yet possible to check if the window has been resized (after the refactor branch merge). Instead, resize to rootObject regardless only if the current view has no visible area. Task-number: QTBUG-22019 Change-Id: I158aaa11862529745ad389e1cbadb6a0ad18c742 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Delete view at end of testAlan Alpert2011-11-0223-0/+33
| | | | | Change-Id: I290536bd975e7e6f6f65cf964604664faf7d3056 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix incorrect cache indexes when consecutive list items are removed.Andrew den Exter2011-11-021-0/+153
| | | | | | | | | | | | | | | When cached model items are removed listItemsRemoved will try and append a new cache only range onto a preceding one where possible. Previously it would then re-run that range so the current indexes in the list were incremented before moving onto the next range, which meant that the current indexes were incremented by size of the previous range twice. Instead of processing the range a second time increment the cache indexes directly when inserting a cache only range and move directly onto the next range in the list. Change-Id: I63418c4397f911cefb521c5a5b0dd25faf66e08b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add support for more sequence typesChris Adams2011-11-0214-0/+1008
| | | | | | | | | | | | | | | | | | | | | | | This commit adds support for more sequence types by adding a sequence wrapper. This class enables conversion between v8::Array and C++ sequences of various types (currently just QList<int>, QList<qreal>, QList<bool>, QList<QString>, QList<QUrl> and QStringList), but more types can be added later if required). When a JavaScript object is created from such a sequence, its prototype object is set to the v8::Array prototype object. The indexed setter, indexed getter, length and toString methods are implemented directly or in terms of the underlying sequence resource. Note that currently, sequences of ValueTypes are NOT supported, due to the fact that operations like: someObj.someValueTypeSequence[i].x = 5; would not behave as required. Task-number: QTBUG-20826 Task-number: QTBUG-21770 Change-Id: I36deb448fb0e87a32084a900e70a2604ff369309 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Debugger: Split inspector plugin into a qtquick1 and a qtquick2 pluginKai Koehne2011-11-011-1/+1
| | | | | | | | This allows the inspector to be used also when e.g. qtquick1 and widgets libraries are not available. Change-Id: Id8510ea2a1a9c2a776d67e6d7732a4e40363d5a3 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Ensure that chained incubation works from componentCompleted.Martin Jones2011-11-014-0/+180
| | | | | | | | | Make chained AsynchronousIfNested initiated from componentComplete work correctly, i.e. asynchronous incubator is not Ready until all chained creation is Ready. Change-Id: I286cc10e2f09e36dcc6034f3f23681e833d7e6e8 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Declarative: Remove qpa-conditionals from test profiles.Friedemann Kleint2011-11-016-8/+6
| | | | | Change-Id: I72619c5f76cd455c3fd4ca992dadef73901c1b18 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add non-floats to particle typeAlan Alpert2011-11-012-0/+15
| | | | | | | | booleans exposed for the 1.0 or 0.0 floats, and color exposed as 0.0-1.0 even though it's 0-255 internally. Change-Id: Idc7ab2527fef150fddb077fc73ac1c7cf122cfdd Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Workaround windows not gaining focus on mac.Andrew den Exter2011-11-011-0/+4
| | | | | | | | | | | Delaying giving focus to the rootItem until the canvas window gains focus doesn't work if the window never gains focus. So give focus to the rootItem immediately so text input continues to work while QTBUG-22415 is being resolved. Task-number: QTBUG-22409 Change-Id: I1bdb13485219d0c2a2f8bdcb3e0972444e3813f2 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Mark ImageParticle as insignificantAlan Alpert2011-11-011-1/+1
| | | | | | | | CI system only unstable failures take a while to track down and aren't worth blocking all commits for. Change-Id: I10750b644f13ad25f66afb3f9551988e1ed2d8b6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Basic autotest of QQuickSpriteGoalAlan Alpert2011-10-313-0/+172
| | | | | | | | Depends on the fix for QQuickImageParticle that makes it actually update the data object. Change-Id: I12992cbe504988c6df45b319c1e6f6e304b327de Reviewed-by: Martin Jones <martin.jones@nokia.com>
* System test for TextEditDamian Jansen2011-10-312-0/+486
| | | | | | | | Basic tests for the QtQuick TextEdit element Change-Id: I532a6b4d3d433ac853248780ee9a6ac03c2f7275 Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com> Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
* Stabilize Particles tests some moreAlan Alpert2011-10-3120-32/+32
| | | | | | | | | Odd timings can lead to slight variances in the particle groups size, this is allowable in autotests. Also fixes incorrect use of extremelyFuzzyCompare in tst_qquickage. Change-Id: Ibea3a2b2a3a31ab1fe6d908c1676d865db9ba968 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Fix autotest compilation failureKai Koehne2011-10-281-1/+1
| | | | | Change-Id: I3f44837a611af1dde9d34ccf99d38fb04fda48c2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* TextInput system testsDamian Jansen2011-10-282-0/+540
| | | | | | | | Basic tests for the TextInput element Change-Id: I0531044fa7f901dcd80a10d39b537688926ac03f Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com> Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
* Text system testsDamian Jansen2011-10-284-0/+558
| | | | | | | | Basic tests for the QtQuick Text element Change-Id: I25156055867d9fd4aa6b0b1bad789444894b7960 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com> Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com>
* Make qdeclarativeinspector autotest compile againKent Hansen2011-10-271-1/+0
| | | | | Change-Id: I3a359e920494dc6eb51fc9c19f4f95d9911d0fa4 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Rename test target to match directory name.Michael Brasser2011-10-271-1/+1
| | | | | Change-Id: I8570d7ff4a824879ea32666e0715a253b472829a Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix qdeclarativeinspector test target nameDamian Jansen2011-10-271-1/+1
| | | | | Change-Id: Ia56fa0d58f7d1a78eaebd1e57222216144a43fcb Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Re-add anchors autotest for QtQuick 2.0.Michael Brasser2011-10-2712-0/+974
| | | | | Change-Id: I4365e0b14b359e2deab96097dba79f31d807809a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use TESTDATA macro in ListModel tests.Michael Brasser2011-10-272-12/+16
| | | | | | Task-number: QTBUG-21721 Change-Id: I5fa4359f3042552896676a4183a70bf91df97724 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Readonly QML property supportAaron Kennedy2011-10-269-13/+118
| | | | | | Task-number: QTBUG-15257 Change-Id: I539b6e6a9e0e0172b68e8002aaa3f7c7e6648769 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove Q_WS_*, symbian and maemo code in QtDeclarativeDamian Jansen2011-10-267-49/+24
| | | | | Change-Id: If64daf80f9d19973e0bc2d864b003a66be5ca61d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Cursory test for QQuickGroupGoalAlan Alpert2011-10-263-0/+173
| | | | | | Change-Id: Ieb31c2885895c8377d12ba0b44b78b462d02c98e Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Basic QQuickSpriteImage autotestAlan Alpert2011-10-264-0/+153
| | | | | | | At least verifies the property covenant and instantiation success. Change-Id: I9d5170c3fd3ae59919684d377151804b71f9081f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add state changing properties to QQuickSpriteImageAlan Alpert2011-10-2611-0/+146
| | | | | | | Also adds a manual test for them. Change-Id: I5f7effe43f5784eccf7221f2bd72da480792bf89 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* Add test for bug with typeof in imported js files.Michael Brasser2011-10-263-0/+71
| | | | | | Task-number: QTBUG-21864 Change-Id: I0fc9dc02f7ec00a2f7234484f5afafbbfe7ffca0 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Eliminated usage of qttest_p4.prf in newly added test.Rohan McGovern2011-10-261-3/+3
| | | | | Change-Id: I4a1d797714e61fa5dded1137c07180c4b1cad84c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Optimize listmodel and allow nested elements from worker script.Glenn Watson2011-10-267-205/+478
| | | | | | | | | | | | Added support for nested listmodels when used from a worker script thread. Optimized the implementation of ListModel, especially the performance of appending a large number of items. Added a batch append mode (with an array of JS objects) to reduce the overhead of calling from JS into native code for each append operation. Task-number:QTBUG-21508 Change-Id: I07b381dc3e8200d92d6e0af458df8850d78b510f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Test for changing font via statesDamian Jansen2011-10-262-0/+50
| | | | | Change-Id: I1bc4bfefb5b4892be53b261d65a50a0cfd5a7d00 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix "for (... in ...)" loops for list properties.Michael Brasser2011-10-262-0/+33
| | | | | | | Task-number: QTBUG-22276 Change-Id: Ibe5a1180044d8e4a6ca6458e8170dd027885ad10 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Add MultiPointTouchArea element.Michael Brasser2011-10-259-2/+725
| | | | | Change-Id: I3a4f774cd96ab7f5d08e85c965f59e1416f02e0e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rename QSG* to QQuick* in particles folderAlan Alpert2011-10-2587-390/+390
| | | | | Change-Id: I793eaf16f3810df0cb0f9f8482ac0b9d6137595d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Debugger: Add autotest skeleton for inspector serviceKai Koehne2011-10-2411-102/+402
| | | | | Change-Id: I2edd0d46f9b82262b91833945515374b9683be4b Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix compilation of QtQuick1 tests.Friedemann Kleint2011-10-242-244/+244
| | | | | | | | | Per widget context is no longer supported as of qtbase:3d71266fea91628d28ae4e55cd105a0bd5d8b457 Change-Id: I67c84eda958053973e764e33dc7e65b7316c8c00 Reviewed-by: Pekka Vuorela <pekka.ta.vuorela@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Make qdeclarativeincubator test compile againKent Hansen2011-10-241-1/+0
| | | | | Change-Id: I6586a75f52964d9dc466e70a9115c17fb3838d62 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Remove QtScript dependency from autotestKent Hansen2011-10-241-1/+1
| | | | | Change-Id: Icb6aaa95d97078101c88d4c4f821f246a98a6ab7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Remove insignificant test flag from qquickcanvasitemKent Hansen2011-10-241-1/+0
| | | | | Change-Id: I667f65bad25b0ec8d97dc7bd8b594a90609a7286 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fold Move into AffectorAlan Alpert2011-10-242-0/+101
| | | | | | | | | | | | | | | | | | Since 'Move' was just a generic physics property affector, it makes sense to fold it into the generic affector as an easier way of implementing the common case of custom affector (and much faster, since it doesn't hit JS). For completeness in the Move behavior, 'once' now applies the effect of affectors over a second in that one time, so as to avoid exposing the simulation tick. This allows once to have actual meaning for continous affectors. Gravity is also going to be kept around as a convenience (although it will change slightly), so just removing its deprecation warning. Change-Id: Ieb52f8990445fe95f94070175a0f9beb6686324b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add threshold property to FrictionAlan Alpert2011-10-242-0/+100
| | | | | | | So much easier than calculating exact counterbalancing acceleration. Change-Id: I7cc43cc2e4d0ad39d1996d432f0e29ccf7bff554 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix item focus following canvas focus.Andrew den Exter2011-10-245-79/+66
| | | | | | | | | Restore canvas focus handling so that active item focus is added and removed as the canvas focus changes. Task-number: QTBUG-17320 Change-Id: Ief60f35da2f3a563f397ce026ca6fea289a200c4 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Tests: Remove Q_WS_QPAFriedemann Kleint2011-10-245-15/+1
| | | | | | | Prepare for compilation without -qpa. Change-Id: I8ec76d4ea3d045be457e728391462a8b195c8883 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Mark test as failing, remove insignificant test flag.Toby Tomkins2011-10-242-2/+1
| | | | | | | | Task-number: QTBUG-21682 Change-Id: I2f6cbd65b0b364b5fbc014966817652e982f8564 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove insignificant test flag.Toby Tomkins2011-10-245-9/+1
| | | | | Change-Id: I1c22b3350add76f97c5268e2f6f2526d818b7556 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove dependency on QDesktopServices deprecated API.Martin Jones2011-10-241-2/+2
| | | | | | | | QDesktopServices::storageLocation() is deprecated in favor of QStandardPaths::writableLocation(). Change-Id: I50f73e93f39ded555123656282cf5a02abb972d8 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Rename Qt Quick-specific classes to QQuick*Kent Hansen2011-10-21481-3703/+3709
| | | | | | | | | | | | | | | | | | | | | | The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix test fails related to QTBUG-22237Charles Yin2011-10-211-1/+2
| | | | | | Task-number:QTBUG-22237 Change-Id: I933c2cbd9218c8a5403712aa9dafe4221791ce0d Reviewed-by: Michael Brasser <michael.brasser@nokia.com>