aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove insignification from some fixed testsMiikka Heikkinen2012-03-264-8/+0
| | | | | | | | These tests no longer fail on Windows, so remove insignification from them. Change-Id: Ic4fd2fa83a0f706c1cbd5299d5243f65c3251f93 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Remove tentative commit from editorsPekka Vuorela2012-03-262-32/+0
| | | | | | | | | Feature to be reimplemented simplified. Now using new FocusAboutToChange event for using input method to commit stuff when window is losing focus. Change-Id: I81c96c36d9f0a1b38adb4324f3b892c33547cb50 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix horizontal alignment bug with rich textYann Bodson2012-03-261-0/+76
| | | | | | Task-number: QTBUG-21473 Change-Id: I3542d7fb49ec1ea370709c799167ec01cf5ed19c Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove QObject parenting from QQmlAbstractBoundSignal.Michael Brasser2012-03-261-9/+2
| | | | | Change-Id: If549cf57bbac18a986a2a0e63fdc76902d2dae43 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use QQmlAbstractBoundSignal where appropriate.Michael Brasser2012-03-261-3/+3
| | | | | | | Prepare for the addition of another subclass. Change-Id: I340f735503e661d9d735f3316a065f807294921b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* PathView was missing the maximumFlickVelocity propertyMartin Jones2012-03-261-0/+54
| | | | | Change-Id: I0ed4ff0fe169187f7a8e03597be7407e9896100d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add templated module api registration functionChris Adams2012-03-266-9/+87
| | | | | | | | | | | | | | | This commit adds a templated module api registration function which allows clients to provide type information at registration time. We use this typeinformation in V4 if available, in order to allow module APIs to be used in v4 bindings. This commit also clarifies the ownership semantics of QObject module apis, and updates some documentation references which were missed during the rename of Declarative to Qml. Task-number: QTBUG-24894 Change-Id: Iebb61ca8d8eacbb15218549eab715e22f52a1474 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update item anchors when the baseline offset changes.Andrew den Exter2012-03-262-0/+39
| | | | | | Task-number: QTBUG-24303 Change-Id: I75fb8eb8afb48a3f40fa159d914ac12ab6bc9ffe Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Support registered QFlags in QML methods and signal handlers.Michael Brasser2012-03-263-1/+24
| | | | | Change-Id: I2a71122303dcf7af4f07c3ffb73456bcdce62a74 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Basic system tests for ListView sectionsDamian Jansen2012-03-262-0/+265
| | | | | | Change-Id: I3f33aa77a4bbe87a832066bd1f527521dfa543ff Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Prevent the root object from being garbage collected.Michael Brasser2012-03-233-0/+95
| | | | | | | | Passing the root object as a return value from a C++ function could cause the indestructible flag to be set to false. Change-Id: Ib70c666f0d0ffbb48bca1996c2517fbccafa5dc1 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix crash issue for path animation and path interpulatorCharles Yin2012-03-232-0/+50
| | | | | | | | | | | When set progress value out of [0,1], path animation and path interpulator should make sure the value be modified in the valid value range, otherwise the QQuickPath::backwardsPointAt() will crash. Task-number: QTBUG-24308 Change-Id: Icd6e9165c9f844ddb8ec84c229eac4db5246a749 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Change smooth to be true by defaultGunnar Sletta2012-03-225-6/+10
| | | | | Change-Id: Ia74a5c76058a2822e61dfa2f7316ea0612ebc15c Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add move comprehensive tests for TextInput input mask.Andrew den Exter2012-03-221-0/+489
| | | | | | | | This was previously covered by tests for QLineEdit but since the two implementations have diverged we also need to test individually. Change-Id: I00ae7bfd96302d08af4364f577925e99882117a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix text wrapping and eliding with implicitWidth.Andrew den Exter2012-03-223-17/+144
| | | | | | | | | | | | Update the implicitWidth of the item before continuing with the layout rather than after it's completed this gives any bindings dependent on the implicitWidth the opportunity to update the width before the layout continues. Task-number: QTBUG-22680 Task-number: QTBUG-24251 Change-Id: I61cd96ad9891b22d8b83937ad2c06719f88976b6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Test unregistered local enums in QML methods and signal handlers.Michael Brasser2012-03-213-1/+41
| | | | | | | Also make sure valueC and valueD are initialized. Change-Id: I8ee78b7b779c37ca792300c7771ae9975f43d8bb Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Allow flick on press-move-release in Flickable.Laszlo Agocs2012-03-211-1/+14
| | | | | | | | | Right now it needs at least a press-move-move-release to start a flick which is not ideal for touchscreens because a quick, short flick may result in reporting only a single move. Change-Id: I9bf2b4fea23b0eea9d9d00f0e79ce34f4d964bea Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix margins for right-to-left modeBea Lam2012-03-213-16/+42
| | | | | | | | | | | | | | | The behaviour for considering left and right margins was inconsistent in views with a right to left layout; these values were reversed for extent calculations but not for general positioning. With this change the left and right margins are never reversed in a right-to-left layout, so minXExtent and maxXExtent calculations always use startMargin and endMargin respectively, regardless of layout direction. Also fixes calculation of endOffset in trackedPositionChanged() when in horizontal orientation. Change-Id: Ie00e3d4c2bd38d8fe6ac0213702206b88bfa895e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* ListView system testsDamian Jansen2012-03-215-0/+1009
| | | | | | | | | | | Tests: Change of model, delegate and orientation at runtime Use of add, move and remove view transitions Changing of view transitions at runtime Task-number: QTBUG-21504 Change-Id: Icaeb5c0305c7db5db4c4b8c5ad5fd1d6393cc599 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add new line to last line of qquickfolderlistmodel.proMartin Jones2012-03-211-1/+1
| | | | | Change-Id: Ia4baa8258b9ad40503abc0f88cb8e887b8f996a4 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't overwrite text selections made in focus handlers.Andrew den Exter2012-03-212-42/+221
| | | | | | | | | | Defer giving focus to TextInput or TextEdit until after other mouse press handling has been performed, otherwise setting the cursor position will overwrite any selection or cursor position set in the on(Active)FocusChanged handler. Change-Id: I6332642484de65138a444987b5a81be69c6f835f Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Content size should not include trailing spaces.Andrew den Exter2012-03-211-41/+108
| | | | | | | | | | | | | | | Excluding trailing spaces from the content size means the cursor position also needs to considered in determining the width used by the text as unwrapped white space can push the cursor over the width of the item. Also corrects an auto scroll issue with right to left text identified in extending the tests. Task-number: QTBUG-24630 Change-Id: Iaab9eac03824b22f507154fa1d6e55376bd075a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Add more element qmltestrunner casesDamian Jansen2012-03-2116-15/+1727
| | | | | | | | Added remote testing to Image, BorderImage Added several basic element tests Change-Id: I1a25f31bc66be6b096a6d3c217196d5625e8a2ed Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Fix qquickfolderlistmodel includesMartin Jones2012-03-211-1/+1
| | | | | Change-Id: I74b1010207b66514d65a383db6e01d396006170f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Allow literal enum to int property assignmentsChris Adams2012-03-212-0/+69
| | | | | | | | | | | | | | Previously, enum to int property assignments were considered bindings. This commit adds support for assigning enum values to int properties as enums. Note that to use an enum in QML, it must have been declared with Q_ENUMS or otherwise registered as a metatype. Enum values from the global Qt object are also usable. Task-number: QTBUG-23403 Change-Id: I50db6cae54a24400ea472bde43619d547e4ceb78 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix consistency of parsing ISO 8601 date strings.Andrew den Exter2012-03-217-2/+65
| | | | | | | | | | | Use the UTC timespec for strings with no time zone qualifier as V8 does so we don't get different QDateTime in bindings depending on whether the string was bound directly, or parsed by constructing a new JS Date object. Task-number: QTBUG-24895 Change-Id: I8f74dae418aaeeaf06df33fe58ab4e3e3fea791b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Support unregistered Qt namespace enums in QML methods.Michael Brasser2012-03-213-0/+28
| | | | | | | | | This brings the support in line with signal handlers, which should allow us to reuse the implementation there when appropriate. Also adds tests for both registered and unregisted Qt namespace enums. Change-Id: I366846626fc44d6d99b51e93fc9e3cb948c748f9 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Support (registered) non-local enums for signal/slot params in QML.Michael Brasser2012-03-215-4/+144
| | | | | | | | | | | | It's now possible to detect whether a registered type is an enum, allowing registered non-local enums to be used as parameters in signals and slots from QML/C++. Author: Glenn Watson <glenn.watson@nokia.com> Task-number: QTBUG-20639 Change-Id: I8c439f2dcc7bfd8ec31914b0c86cd3a1de3c038c Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update item focus even if it doesn't have a canvasBea Lam2012-03-201-23/+57
| | | | | | | | | | | | | | | | Currently the item focus data is not updated if it is not in a canvas. This means a subFocusItem may be deleted when the item is outside of a canvas, creating a stale pointer when the item is moved back into a canvas. This change also means that the last item to set focus=true will now consistently get activeFocus. Previously if an item did not have a canvas and then was moved back into the canvas, the first item found with focus=true would get activeFocus. Task-number: QTBUG-24616 Change-Id: Ia706bd6ba6bcbccd616b5019c7c0fae4c39afa7f Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Make QVariant conversion for JS null type symmetricKent Hansen2012-03-202-2/+14
| | | | | | | | | | | | | | | | If you pass (void*)0 to QJSEngine::toScriptValue(), or you pass a QVariant of type QMetaType::VoidStar containing a 0 value, you get back a QJSValue of type null (isNull() returns true); that's fine. However, if you called QJSValue::toVariant() on a JS null value, you would get back an invalid QVariant. The expected result is a QVariant of type QMetaType::VoidStar containing a 0 value. This makes the conversion of the JS null type symmetric and avoids loss of data. Change-Id: Ifa6e788152118f80adf9c2d7be1283f053b44294 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Make TextEdit word selection behaviour consistent.Andrew den Exter2012-03-202-15/+32
| | | | | | | | | | | | | Word selection initiated by a double click in QTextEdit only selects a word if the drag point is closer to the end than the start (assuming ltr selection) which can make it difficult to select small words with touch input, as such the SelectWords mouseSelectionMode of TextEdit selected a word if the drag point intersected any part of the word. Since we no longer have to retain compability for QTextEdit we can settle on a single behaviour for word selection. Change-Id: Iaabb7938a2b61b84a290a9ee41e407c83144b96f Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Add additional key sequence tests.Andrew den Exter2012-03-202-55/+207
| | | | | Change-Id: Ie77a61a3ea0d1bdccd59dd519346db74bdf59c44 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix QQuickTextInput test failure on WindowsCharles Yin2012-03-201-3/+0
| | | | | | Task-number: QTBUG-24790 Change-Id: I1d78df79568389f8c59f99ace9e2d7685b5d8f0d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix tst_qquickitemlayer test failuresCharles Yin2012-03-203-10/+10
| | | | | | | | | The minimum window width in Windows 7 requires more than 100, so make the item width to 200 to avoid test failures. Task-number: QTBUG-24787 Change-Id: I439528a94aed9c54eca0fa68651c84afa4f9ab13 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix FolderListModel path issue on WindowsCharles Yin2012-03-201-3/+1
| | | | | | Task-number: QTBUG-24777 Change-Id: I819c2e07b23e8740f7570f117dafb2340f7c00e9 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Support null -> QObject and QObject -> bool conversions in v4.Michael Brasser2012-03-202-0/+17
| | | | | Change-Id: I66602bf52986a388f9b6fe2bcd4630b862138906 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Loader could leak qml contexts if interruptedMartin Jones2012-03-201-2/+4
| | | | | | | | If Loader was either destroyed, or its source changed while it was incubating the itemContext could be leaked. Change-Id: I5b749062552954d92bf2851250f942b20ebbfe68 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Restore view to sensible position if grab is cancelled.Martin Jones2012-03-204-0/+88
| | | | | | | If the mouse grab is stolen, return to allowed bounds. Change-Id: Icc44da32ff62bed273f0ccbb5498766981cdf9a4 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Allow parent to be specified for Qt.createComponentMatthew Vogt2012-03-202-0/+137
| | | | | | | | | | | | | | Add an optional parameter to the Qt.createComponent function which allows the caller to specify the object that will become the parent for the created component. If the parent is not specified by the caller, it becomes the QML engine; this behavior will change in the near future to allow these component objects to be collected when no longer referenced. Task-number: QTBUG-24840 Change-Id: I2742133fe8ab8cbc80d8012a9d9b9fc2e4596fca Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Ensure JS files imported inside modules work correctlyMatthew Vogt2012-03-195-0/+38
| | | | | | | | | When a module exports functionality provided by a script, ensure that imported script modules inside that script resolve correctly. Task-number: QTBUG-24596 Change-Id: I3885dcc56946423f0d7cf00afdcdfaa0cb11967a Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* QmlEngineDebug: Simplify the utility classesAurindam Jana2012-03-194-1747/+776
| | | | | Change-Id: Ie0e1b6e9edd6a09fef565635cc793f8bdb6c42e7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlEngineDebug: Rename to QmlEngineDebugClient in AutoTestAurindam Jana2012-03-195-174/+136
| | | | | Change-Id: If20b53d2e47cdc4ed54df0d9360ae1b0566489c6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix data file checkout formats in Windows for some declarative testsMiikka Heikkinen2012-03-192-0/+4
| | | | | | | | | Fixed by adding proper .gitattributes for the tests Task-number: QTBUG-24780 Change-Id: If8de0161a377c21fb5c6327d69e8da84174ee435 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Debugger: Always disable v4 optimizer if v8 debugger is activatedKai Koehne2012-03-192-4/+24
| | | | | | | Don't rely on QML_DISABLE_OPTIMIZER environment variable being set. Change-Id: Ib1a9d83eb9698adcd3c9a5bbcc74cba382836078 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QmlEngineDebugService: Rename service to QmlDebuggerAurindam Jana2012-03-191-4/+10
| | | | | | | | Rename service from QDeclarativeEngine to QmlDebugger. Send a response for each query. Change-Id: I01cfeaf3e4116bfd7029d170ee228c159973947c Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Debugger: Add optional 'host' argument to -qmljsdebuggerSimjees Abraham2012-03-191-1/+1
| | | | | Change-Id: I5bb2e48e2ad2019b8a92f6f8842b88027fcd2d28 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebuggingTests: Separate out public and private testsAurindam Jana2012-03-1923-156/+321
| | | | | | | | | Remove dependencies on quick-private from all possible debugging auto tests and list them under public tests. Change-Id: I688b5b36fdf3d6fbcb6cef2a975ecd1bf679af2b Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Skip some font loader tests for WindowsCharles Yin2012-03-191-0/+21
| | | | | | | Windows currently does not support font loader yet. Change-Id: I370e41c1f2e2a45787741414a6e7bf00cc3f6c3e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Make qqmlinspector test work on WindowsCharles Yin2012-03-192-0/+5
| | | | | Change-Id: Ib7399f9a005d3674fcb46c605cea3a8d40c21284 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* QmlDebugging: Object Tree and States ListAurindam Jana2012-03-191-13/+16
| | | | | | | | | All created instances are stored under the root context. Check for the creation context of the object when building up the tree. Do the same when building up the states list. Change-Id: I8716d9966a61b8f7cb3ad4b7ab5acd4c94b4cd03 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>