aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge master <-> api_changesMatthew Vogt2012-03-05103-645/+3712
|\ | | | | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
| * Profiler: Use RAII helper structs for rangesKai Koehne2012-03-021-1/+1
| | | | | | | | | | | | | | Exclusively use RAII helper structs for ranges. Change-Id: Ief9ab25a9e49e1b2c3c091e5d9de6479e36eaa50 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
| * Fix when animating items that are already movingBea Lam2012-03-024-10/+105
| | | | | | | | | | | | | | | | | | | | The view must transition displaced/moved items that are currently transitioning to another position; check against the current transition-to position, not just the current item position. Task-number: QTBUG-24522 Change-Id: Icf1c290f76ceb8c93716f1562ae0bc5a75445b78 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Add QColor support to v4.Michael Brasser2012-03-022-0/+36
| | | | | | | | | | | | | | | | Change-Id: I033e92007f894d45695ea48d7f954d534a2fadee Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
| * Improved transitions for Row, Column, Grid, FlowBea Lam2012-03-024-0/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | The view transitions functionality for ListView and GridView has been integrated into the positioner elements. Not all of this functionality is available for positioners, though, since they don't have models (and thus cannot identify certain model operations) and they don't manage the lifetime of their children. Task-number: QTBUG-24336 Change-Id: I71588de289555d2ef5a763af11358bc0af7b31a7 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Reenable value type binding auto removal tests.Michael Brasser2012-03-021-2/+2
| | | | | | | | | | Change-Id: I349017bf24f9f2f18024d1257eeaebb348cc8503 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
| * Allow styled text to be elided.Andrew den Exter2012-03-012-274/+249
| | | | | | | | | | | | Task-number: QTBUG-24521 Change-Id: Idd451d0a8a238a60691386726e34054c0368b658 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * Reduce size of QQuickTextPrivateYann Bodson2012-03-011-6/+7
| | | | | | | | | | | | | | Move less used members to an extra struct lazily allocated Change-Id: I87e464af4b9d29303705dd7e766f734309ed7763 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
| * Fix QQuickDropArea test compilation.Andrew den Exter2012-03-012-37/+40
| | | | | | | | | | Change-Id: I5feaabe235201af842ca6bc4f3496b1861b06fb9 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
| * Add autotest for QML meta-objectsKent Hansen2012-02-2927-0/+506
| | | | | | | | | | | | | | | | | | This autotest checks that the QMetaObject generated from a QML type can be introspected from C++ (properties, class info, signals and slots). Change-Id: I9a50f138f911690f5c55cd28e5b49f0682450d07 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * FolderListModel: remove widget and QDirModel useMartin Petersson2012-02-291-2/+2
| | | | | | | | | | | | | | | | | | FolderListModel used the obsolete QDirModel internally. Because of this it needed widgets to work. I have made a threaded model instead that use QDir internally. Change-Id: Ibd1267a135ee3c6df7bcde420073866b7a76d0d1 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Don't round Text dimensions.Andrew den Exter2012-02-293-8/+4
| | | | | | | | | | | | | | | | | | Painting issues in QtQuick1 meant drawing had to be aligned to pixel boundaries, since this is no longer a problem we should use qreal everywhere. Change-Id: I58e88e10270fa603170f1cedf471bfb53bd89b73 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * Add generic "displaced" transition propertyBea Lam2012-02-295-0/+691
| | | | | | | | | | | | | | | | This is the default displaced transition that will be applied if addDisplaced, removeDisplaced or moveDisplaced are not specified (or are disabled). Change-Id: I9356036dc93bd9cb26e64e0b1769228113b74273 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Rename SpriteImage to SpriteSequenceAlan Alpert2012-02-287-18/+18
| | | | | | | | | | | | | | Also rename Sprite::frames->Sprite::frameCount Change-Id: I2e7a71adc37044fd696ffda2a5da4835725ba3a8 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Add AnimatedSpriteAlan Alpert2012-02-285-0/+157
| | | | | | | | | | | | | | | | A simpler sprite image element for the simple usecase. Because sometimes an engine with stochastic capabilities is overkill. Change-Id: I2b76c5d417719e92a548f6266bffd563dc016983 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Correctly set duration and easing for AnchorAnimation.Michael Brasser2012-02-281-0/+15
| | | | | | | | | | | | Task-number: QTBUG-24532 Change-Id: I3aad9cd8281b954896c2c1d44b2dcae68f913928 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
| * Skip c++ examples in sgexamples testAlan Alpert2012-02-271-8/+9
| | | | | | | | | | | | | | | | They should be tested separately, QTBUG-24516 has been raised to implement this. Change-Id: Ic90bc8327e6c07164ed34b3d02f2612561491ec0 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
| * QmlProfiler: send v8 profiling started signalChristiaan Janssen2012-02-271-0/+14
| | | | | | | | | | Change-Id: Ie26bd47c9b79a7f524b9c5bc59146be1ea93761d Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
| * Skip test case for nowBea Lam2012-02-272-0/+4
| | | | | | | | | | Change-Id: I06128c544c1ee03d4528f6f86fc776e09be87316 Reviewed-by: Bea Lam <bea.lam@nokia.com>
| * Don't create a separate section header for currentItemMartin Jones2012-02-272-3/+142
| | | | | | | | | | | | | | | | | | | | The currentItem FxViewItem contained it's own section item, which when created would cause the current item delegate to be repositioned. This change associates the section item with the delegate item, via the attached object. Change-Id: Ie675d545539b56d0f1cf5a9b4ea26668978a5e72 Reviewed-by: Bea Lam <bea.lam@nokia.com>
| * Check engine equality condition inside null ptr checkChris Adams2012-02-272-0/+23
| | | | | | | | | | | | | | | | | | | | | | Previously, we asserted if the engine associated with the two external resources from the arguments to the object comparison callback were not equal, prior to checking that the external resources were non-null. Task-number: QTBUG-24489 Change-Id: I4b2bd2377fcf38163d1341e43e056b1405ab72ac Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
| * Ensure importing module API in js import worksChris Adams2012-02-273-0/+22
| | | | | | | | | | | | | | | | This commit adds a unit test to ensure that a property of a module api can be accessed in a JavaScript import. Change-Id: Iecba76a9db0400ece1777256f19803d4bad53438 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Improve test coverage for anchors.Michael Brasser2012-02-272-0/+80
| | | | | | | | | | Change-Id: I2705407b16ef678ed5b3cbfa7116ae6b18366688 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * Stabilise testsBea Lam2012-02-272-14/+14
| | | | | | | | | | Change-Id: I2227fede52f5b0d59bd0dd9b10ab0151318d61dd Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Get script benchmark compiling and running.Michael Brasser2012-02-274-107/+262
| | | | | | | | | | Change-Id: Ifc433f6c430d430bfb8b2d8b47a84ad2688e4cb2 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
| * Start of examples refactorAlan Alpert2012-02-241-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | This is the general reorg of the examples directory structure, plus additional guidelines. calculator, animations and accessibility have been updated to the new standards and tested, as an example. Task-number: QTBUG-24133 Change-Id: I76c3b86751d3195ba2a5474ff23afb875765e9a4 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Add additional autotests for signal handlers.Michael Brasser2012-02-248-1/+44
| | | | | | | | | | Change-Id: Ie94ce8b536347981310abeb077a88acedf44c7e6 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
| * Use floating point types for position offsets and cursorRectangle.Andrew den Exter2012-02-242-59/+56
| | | | | | | | | | | | | | | | | | Rounding to align painting to pixel boundaries is no longer necessary are largely removed. Correct the few instances remaining in TextEdit and TextInput. Change-Id: Ic6ec57092d74ec43b23d85cd8868e0190acc3e09 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * Fix rewrite of multiline string literals.Roberto Raggi2012-02-232-8/+28
| | | | | | | | | | | | | | | | | | | | This commits ensures that we don't rewrite `\'-terminated multiline string literals. Also, it fixes the processing of \r characters inside the string literals. Change-Id: If3d7c1b83c7306b9ccb1be31412b6f8e76434c41 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Fix crash in instruction dumpAaron Kennedy2012-02-231-2/+2
| | | | | | | | | | | | Change-Id: I2cfa9da120a602b52f401dd304b44cd17c47b220 Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
| * Use new plugin system in QtDeclarative.Friedemann Kleint2012-02-239-15/+17
| | | | | | | | | | | | | | | | - Use prefix "org.qt-project" for interfaces. - Use new macros, add json files. Change-Id: I53df83f95153c5c9c462098584606284470a5ae0 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Remove warning produced by 'parent' reference.Matthew Vogt2012-02-232-0/+44
| | | | | | | | | | | | | | | | | | | | | | When Qt.createQmlObject is invoked from QML, any contained references to parent produce a warning from V8. To prevent this, move the assignment of the parent object to before the initial execution of the bindings. Task-number: QTBUG-24464 Change-Id: Ib330822f1ca46ec5a6af648a56197da09669c3f2 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Fix Text eliding with implicit height and maximumLineCount.Andrew den Exter2012-02-232-1/+7
| | | | | | | | | | | | | | | | Ignore the height of the text if the element height is invalid. Task-number: QTBUG-24293 Change-Id: I1646c3f64583da40e6166aeea24c2c4af42cb279 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * QML locale.firstDayOfWeek returns 7 for SundayMartin Jones2012-02-231-1/+37
| | | | | | | | | | | | | | To match JS Date object, Sunday should be 0. Change-Id: I662c0b1fcbf921fa1c4bb58f900366dd088b343b Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
| * Fix font size calculation in headings in StyledText.Yann Bodson2012-02-234-63/+181
| | | | | | | | | | | | | | | | | | | | | | Calculate the font size correctly even when the size is specified in pixels and update this size when the font changes. Also make sure that the text layout's font is set before parsing. Task-number: QTBUG-24458 Change-Id: Ida7723f6e4f4b9fd3a6878076f4beaf5bda8f7f7 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
| * Reduce QQuickTextEdit memory usage.Andrew den Exter2012-02-231-3/+0
| | | | | | | | | | | | | | | | | | Remove unnecessary members from QQuickTextEditPrivate and QQuickTextControlPrivate and re-order and pack to reduce padding for alignment. Change-Id: I14f5e3fc01646d02745f095c2a4b168cd675745d Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* | Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-243900-100852/+100853
|/ | | | | | | | | | | | | Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* clean up qmake-generated projectOswald Buddenhagen2012-02-221-11/+2
| | | | | | | | remove "header" and assignmets which are defaults or bogus Change-Id: I1d777f5418b0f353bf276a979c6300a941927e7e Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* DebugMessageService: Remove unneeded dataAurindam Jana2012-02-221-6/+3
| | | | | | | Do not send version info of QMessageLogContext. Change-Id: I32dd4a548ee2b918e5d04dcdffd4d5545fd2f54f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Positioners cleanupAlan Alpert2012-02-222-18/+14
| | | | | | | | Use qreal for positions and spacing instead of ints, and make the positionedItems list take care of filtering out invisible items. Change-Id: Icad93ad89c848e40a70bd7a9539bd810e27020df Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add test verifying that QObject-derived pointer is passed correctly.Matthew Vogt2012-02-222-0/+57
| | | | | | | | Ensure that an object derived from QObject is correctly passed to an invokable function from QML. Change-Id: I71eefe8c480e1f1574804d05244b53f29c7fbf0d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Implement String.localeCompare() using QString::localeAwareCompare()Martin Jones2012-02-222-0/+48
| | | | | | | | v8's localeCompare() implementation is not locale aware, so we use Qt's locale aware compare. Change-Id: Ia9092b3d6754545bb797adac26080ac7a29dcd92 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* DebugMessageService: Also pass Debug Context InfoAurindam Jana2012-02-211-5/+31
| | | | | | | | Use QMessageHandler which provides context information such as line, file and function for the debug output. Change-Id: I475faf4a1363d8419dec910b8a23cc44666c1908 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* v8profiler: Actually submit dataKai Koehne2012-02-212-25/+41
| | | | | | | Fix regression introduced in 82dfecab3. Change-Id: Icd90c483b9b2fde8d4cf522f3a35368cd395b120 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Flicking a pathview with large delegate spacing is inconsistentMartin Jones2012-02-211-7/+2
| | | | | | | | | | | | The deceleration is inconsistent and dragging slowly is jerky. This was largely due to the poor resolution of the path points. pointAt() now interpolates, and the dragging logic is more accurate. Also removed the rounding of item positioning so that side-by-side items don't bounce around. Task-number: QTBUG-24312 Change-Id: I956aff0b83c3c1211d5657159c3de1e4ef0b5171 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Renames QAnimation2ChangeListener to QAnimationJobChangeListenerCharles Yin2012-02-213-7/+7
| | | | | Change-Id: I921b252380d095fb878b4e5d36df0b5a13a3888f Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Stabilise ListView and GridView testsBea Lam2012-02-214-92/+139
| | | | | | | | | | | | | | | | | Some tests need to wait for view to be updated before proceeding. This ensures a polish is received before proceeding - before checking through child items after initial load - after changing content y unless some other QTRY_* is already doing the job. Also fixed some tests that randomly failed for other reasons. Task-number: QTBUG-22872 QTBUG-23605 Change-Id: I2d41bf09fae09b90fd3aadbd5349e991c3339761 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Skip tst_QQuickListView::sectionsDelegate() for nowBea Lam2012-02-211-0/+2
| | | | | | | Failing occasionally Change-Id: I74fdc7f0d71a92ef2ea19df3125a362e2fa199c5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Reduce the size of QTextPrivate.Andrew den Exter2012-02-211-5/+4
| | | | | | | | Remove some unnecessary members, store colors as QRgb values instead of QColor, and reorder members to minimise alignment padding. Change-Id: Id3958429008c97a5714734a529250fe881e2161b Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Add optimizations for QJSValue tests for MSVC.Jędrzej Nowacki2012-02-211-6/+0
| | | | | | | | The comment is not valid. It was added for QScriptValue generated test which are not included in QJSValue tests. Change-Id: I958e3c1d1f57cfa0ad34d1a8c8387deec792efaf Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>