aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix positioning issues and change content y repositioning behaviourBea Lam2012-01-092-17/+411
| | | | | | | | | | | | | | | | | | | | | | | Refactor the code for re-positioning the visibleItems.first() in QSGItemView::applyModelChanges() and fix various positioning issues. The positioning behaviour for removing items at the start of the view has changed. This action will no longer cause the content y to move down; previously the content y would always move down unless another item was moving backwards to the first visible position. This will make it easier to implement built-in removal transitions for the views, since removed items cannot be animated if the content y jumps down past them. Additionally, moving items from before a GridView should not cause the top item in the view to move upwards and out of the view. This also adds additional remove tests and fixes the tst_QQuickGridView::moved() test which wasn't waiting for the polish event after setting the content y, which caused some of the tests to pass even though their test data was wrong. Change-Id: Idad11a73a18f88208e73a52111ed839458e05f2d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QQuickItemParticle timing issuesAlan Alpert2012-01-091-2/+0
| | | | | | | | | | | It was possible for m_loadables to be reset before the items were loaded, and the datum pointer was lost. This was exacerbated by another bug where reset was called every frame for no reason. Both bugs are now fixed. Task-number: QTBUG-23491 Change-Id: I9b60858621b697fc46de1e964cb27ddc0d2dbc65 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove QSKIPs from border image autotest.Michael Brasser2012-01-091-5/+0
| | | | | | | | The fix for QTBUG-23484 also fixed this issue. Task-number: QTBUG-23479 Change-Id: If55e623432b9ad620cad91e5083b1f94382acec6 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Remove QSKIPs from font loader autotest.Michael Brasser2012-01-091-16/+0
| | | | | | | | The fix for QTBUG-23484 also fixed this issue. Task-number: QTBUG-23477 Change-Id: Ie25339e17a079d7e67a92ad8db76f0305399277e Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix failing tst_QQuickPathView::undefinedPath()Bea Lam2012-01-091-8/+7
| | | | | | | | | | Test was failing on Mac because QPainterPath only prints the relevant warnings if QT_NO_DEBUG is not defined, which is not the case for standard builds on Mac. Task-number: QTBUG-23482 Change-Id: Ied4d263a1ce7503b573ecc3c53787dac2b57cc74 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Un-QSKIP an autotestAaron Kennedy2012-01-081-4/+0
| | | | | | | | | QTBUG-23484 has now been fixed. Task-number: QTBUG-23484 Change-Id: I30252c9203c5c1348377a84518da816b1c15ff6d Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Improve QML error messagesAaron Kennedy2012-01-067-7/+7
| | | | | | | | Point at the actual property and method name when raising errors about them. Change-Id: Id36df4850b91ae0d225fcda4d101f4b2a073a72e Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Add itemAt(x,y) function to GridView and ListView.Martin Jones2012-01-062-14/+54
| | | | | | | Task-number: QTBUG-21592 Change-Id: I3169e789da701ce261250421239584abd7f29b57 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Smooth join point for closed Paths starting and ending with PathCurve.Michael Brasser2012-01-062-8/+52
| | | | | Change-Id: I6d416e7d794271c10c9eb19de9678b0fe45b083d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Skip failing autotestsAaron Kennedy2012-01-051-3/+6
| | | | | | Task-number: QTBUG-23485 Change-Id: If2676717e3e18f256e621b30cab8f12e39c5d3d9 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip crashing autotestAaron Kennedy2012-01-051-0/+4
| | | | | | Task-number: QTBUG-23484 Change-Id: I90e1ebee952b87fb3370deedf8c688dacacb0802 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* QEXPECT_FAIL() failing autotestAaron Kennedy2012-01-051-0/+3
| | | | | | Task-number: QTBUG-23483 Change-Id: I97f8576655d3a917b7ead21e3835cf57f9e6be45 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip failing autotestsAaron Kennedy2012-01-051-0/+8
| | | | | | Task-number: QTBUG-23482 Change-Id: I17641e2e8e99afedecfd88e82651fbf859ff9a5e Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip failing autotestsAaron Kennedy2012-01-051-0/+8
| | | | | | Task-number: QTBUG-23481 Change-Id: I719cf1fa7cd3b1f3475a629312ed5fba1511c8ec Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* QEXPECT_FAIL() a failing autotestAaron Kennedy2012-01-051-0/+3
| | | | | | Task-number: QTBUG-23480 Change-Id: Ia1e59b43d66d25a6194c4d9c778019ee679c4383 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip crashing autotestAaron Kennedy2012-01-051-0/+5
| | | | | | Task-number: QTBUG-23479 Change-Id: I668c12efa612a6e17d4405bf703425d5707cb2ad Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* QEXPECT_FAIL() failing testAaron Kennedy2012-01-051-0/+3
| | | | | | Task-number: QTBUG-23478 Change-Id: I39f092833098dd7bdd1abee7e30a3a4b8b2f3b5d Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip crashing autotestAaron Kennedy2012-01-051-0/+16
| | | | | | Task-number: QTBUG-23477 Change-Id: If9a8054192578a18ae75b76cf68daafe9cd133b5 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Skip unreliable autotestAaron Kennedy2012-01-051-0/+4
| | | | | | Task-number: QTBUG-23475 Change-Id: I2c500f24a307574b88357a9f128d4ff0a1b8eb91 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* QQuickTextInput to better call QInputPanel::update()Pekka Vuorela2012-01-051-0/+68
| | | | | | | | | | Some updates were previously omitted, e.g. if text content changed but cursor position remained the same, or if input method changed the selection. Change-Id: I11abd105632d73f8ebb23d0e8c308c53c236cc15 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Run autotests on MacAaron Kennedy2012-01-051-2/+0
| | | | | Change-Id: I8599af92f8897b2a1bd34b42c09b4843ef7ffc5c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Apply expected failure to animated color changes.Toby Tomkins2012-01-052-0/+9
| | | | | | | | | | Color mixing fails on Ubuntu 11.10 x64 platform, this change adds expected failures for this platform only. Task-number: QTBUG-23385 Change-Id: Iaf272735f3cea460a1cb3840ebefd5bd27b5bbfa Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-05488-488/+488
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document new Path elements.Michael Brasser2012-01-051-0/+1
| | | | | Change-Id: Ic1e2aa7da63a7d9e12357a609fc52b3913f14f28 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Support <pre> in StyleText textFormatMartin Jones2012-01-051-0/+1
| | | | | | | Task-number: QTBUG-23159 Change-Id: I842d066efb3a78defba61cc31060840f771f9b11 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Make tst_QQuickListView::margins() more reliableBea Lam2012-01-051-1/+2
| | | | | Change-Id: Ib66f5717316b4c8d71dbef408afbbb9b0698ad7a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Eliminated usage of qttest_p4.prf in newly added test.Sergio Ahumada2012-01-051-2/+4
| | | | | Change-Id: I8f531276e1d769be116fea155c4c68cd698b8fec Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix clipping of TextInput contents.Andrew den Exter2012-01-051-16/+52
| | | | | | | | | | | | The boundingRect represents the clip rectangle of an item rather than the size and position of its unclipped content. This would prevent any content from being clipped except the boundingRect is only re-evaluated when the size of the item changes so the content is instead clipped to the size of the original content. Task-number: QTBUG-23422 Change-Id: I96f830f833129b3230f65452db67b00028c40d6a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use QSignalSpy to save some codeGunnar Sletta2012-01-041-24/+5
| | | | | Change-Id: If4a9b68c39facdca34482bbf3dc22ae607b294e8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix moving mixed visible and non-visible View items.Andrew den Exter2012-01-041-0/+19
| | | | | | | | | | | | | | A removal for a move that included both cached and non-cached was only evaluating the first part of the removal and skipping the remainder. Don't skip all subsequent removals when two ranges are merged, instead reset the current indexes to the start of the merged range and continue on as normal. Task-number: QTBUG-23432 Change-Id: Ieda49e2f68cd0bbbd31ba1e7dfd5af7c3e350d78 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add length property and insert, remove and getText functions to TextInput.Andrew den Exter2012-01-041-0/+797
| | | | | | | | These mimic the functionality of their pre-existing counterparts in TextEdit. Change-Id: Idcb7549cd07ed3c287ab00b7828a3158690faf0e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash in TextInput.Andrew den Exter2012-01-042-0/+34
| | | | | | | | | Ensure the text is laid out before calling componentComplete() on QImplicitSizeItem, as that can potentially evaluate bindings which would then access the uninitialized layout. Change-Id: I5152c1494c54209dae61c13b2f45d343fb76bf9e Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Introduce layerering support (ShaderEffectSource) directly in ItemGunnar Sletta2012-01-0311-2/+594
| | | | | | | | | | | | | This is enabled by doing "Item.layer.enabled: true". The implementation is solely based on the existing shader effect (source) and simply swaps in a sibling next to the item when enabled. This change also adds the QSGTextureProvider to the public API, as it is now a natural part of the QQuickItem API since all items can be textures. Change-Id: I26705c11e92d5623a5121300acc123782b784077 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Combined platform input contexts in tests into one sharedPekka Vuorela2012-01-035-164/+100
| | | | | Change-Id: Ie56f5f8ca5617db6be92d256d455cae585cd6a71 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Use Qt::ImhSensitiveData input hint on TextInput with password echo modePekka Vuorela2012-01-031-4/+4
| | | | | Change-Id: I1e9255af24b51ca42c1e6df7a92664be532ce725 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Don't set the role to Accessible.ButtonJan-Arve Saether2012-01-031-1/+0
| | | | | | | | If an item intend to expose its children, it should not set its role to Button Change-Id: I6b56d1354ce06f65513688ef38c507bd2881ce82 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Fix test failures with shadow builds.Andrew den Exter2012-01-0363-206/+215
| | | | | | | | | | QFINDTESTDATA uses __FILE__ to determine the source directory, which means it finds the wrong source directory when the macro is used from a shared base class. Define the correct source directory in a pri file and include that wherever QDeclarativeDataTest is used. Change-Id: If3ef435f4bb3049733f49402338303c8b440f1fa Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Simplify MultiPointTouchArea signal names.Michael Brasser2012-01-032-4/+4
| | | | | Change-Id: I0617bf7138b76495c111739e2cbdf3b77c4b6a5d Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Add accessibility to qmlFrederik Gladhorn2012-01-0213-0/+1249
| | | | | | | | | | | | | | | This consists of two parts: An attached property for QML items and a plugin for the accessibility framework. The attached property simply takes care of some properties (name, role) that are needed in order to expose semantics of the application to assistive tools. The plugin exposes the hierarchy of QML items to the accessibility framework. Change-Id: I32f5603d0d9549b01b3645b205b710b9801762f7 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* touchUpdated should be called for release and cancel.Michael Brasser2011-12-303-1/+17
| | | | | | | | touchUpdated should be emitted whenever the touch is updated, even if the update means there are no longer any valid touch points. Change-Id: Iceac5a65094784928108acc764bbc1d5c2b9a08a Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Handle exceptions inside QV8QObjectConnectionList::qt_metacallChris Adams2011-12-292-0/+39
| | | | | | | | | Previously, exceptions were not handled in the connectionlist. This could cause v8 to assert under certain circumstances. Task-number: QTBUG-23375 Change-Id: Ie5f043b50bb6b02a77be464ca18ea8e3bbb0f501 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Invisible items should not respond to touch events.Michael Brasser2011-12-281-0/+28
| | | | | | Task-number: QTBUG-23327 Change-Id: I959c9ba40e4ce3972fc3fde2f1c7e73615e78e2e Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Insert items into VisualDataModel.Andrew den Exter2011-12-2312-56/+2022
| | | | | | | | | | | Add API for inserting data directly into a VisualDataModel which can be used among other things to create temporary items that are later resolved to an actual item in the source model. Task-number: QTBUG-21516 Change-Id: I835f0e8d6c5edfb3a21029687de5b700f7400317 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Minimize the number of objects created per item in VisualDataModel.Andrew den Exter2011-12-232-13/+9
| | | | | | | | | | | | | | Derive from QDeclarativeContext and reference count the context object instead of parenting it to the context. Combined with a weak persistent v8 handle the allows the context object to be returned by javascript accessors instead of creating a new instance for every use. In addition to the efficiency advantages of creating fewer objects, routing all data access through a single object means that object can also persist data instead of just acting as a proxy. Change-Id: I107dc8c901f16f2a4b420ff1cbffa7a6be27de89 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash in var property setterChris Adams2011-12-233-0/+14
| | | | | | | | | | | Previously, the function didn't terminate after calling the setter recursively, as it should have. This patch ensures that the setter is called correctly and then returns, and adds a unit test to ensure that no regression occurs. Task-number: QTBUG-23330 Change-Id: If512fca174e5224c2c53caad11f77782e6cead9f Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add a pressed property to TouchPoint.Michael Brasser2011-12-232-113/+227
| | | | | | | | | | | Remove the valid property, and replace it with pressed. The semantics have changed slightly for a release -- pressed will immediately become false, whereas valid remained true until the next touch event. Also make sure touch information is correctly updated on release. Change-Id: Ic61e1b6884c67f19100a6f8fc218b8b05b291ff0 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Detect and optimize qsTr() and qsTrId() bindingsAaron Kennedy2011-12-214-0/+34
| | | | | | | | | As these two are frequently used with constants, we can detect them in the compiler, and run the appropriate C++ functions directly in the VME. This saves pointlessly creating and running bindings. Change-Id: I148a150400c13fda7955949453405202f18b1a6b Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QDeclarative tests: Introduce base class for data tests.Friedemann Kleint2011-12-21122-1917/+1900
| | | | | | | | | | | | | | | | | In tests/auto/shared/util.* replace macros/find functions by a base class QDeclarativeDataTest with accessors for the data directory helper functions to create URLs from it. The class relies on QFINDTESTDATA, which is the standard way of locating test data. Using the class should reduce the number of calls to QFileInfo.exists(), etc significantly. In addition, provide utility functions for messages. Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Change-Id: Id2beacb157922ee9412f9e45cf9695cec1f8379a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Adapted QDeclarativeTextEdit test to platform input contextPekka Vuorela2011-12-211-208/+151
| | | | | | | | Also couple more tests start to pass as side-effect Change-Id: Ie3e8bafa1d397301da3f7af57b026f52b9cf5d21 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Adapted QDeclarativeTextInput test to platform input contextPekka Vuorela2011-12-211-130/+117
| | | | | | | | Also a couple more tests starts to pass as side-effect. Change-Id: I1723d4b5eccbe7abe2ac91ddc8318ac32c1f7e61 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>