aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add support for minimizing Javascript files containing pragmas.Roberto Raggi2011-09-191-5/+0
| | | | | | | Change-Id: Ib61d5ea42ec810c36ba782b558461bc09be199dc Reviewed-on: http://codereview.qt-project.org/5016 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Add auto tests for the QML minifier.Roberto Raggi2011-09-193-1/+173
| | | | | | | Change-Id: Iba821eb490ea791e9c375565985af62cef91d1f3 Reviewed-on: http://codereview.qt-project.org/4671 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix automatic semicolon insertion.Roberto Raggi2011-09-192-0/+20
| | | | | | | | | | The parser should insert a T_SEMICOLON token when it reaches an error state and the lookahead token is following a closing brace. Change-Id: Ib849e7fbfe50c2a3e679ae0794f5780cc0b94de5 Reviewed-on: http://codereview.qt-project.org/4896 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix QDeclarativeListProperty assignmentChris Adams2011-09-192-0/+36
| | | | | | | | | | | | | This commit ensures that a QDeclarativeListReference can be assigned to another QDeclarativeListProperty, by retrieving each element in the list reference and converting to the appropriate type before appending to the target list property. Task-number: QTBUG-16316 Change-Id: Id8858058f052a53bf43eadc085fd278654478d77 Reviewed-on: http://codereview.qt-project.org/4388 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Make cellWidth/cellHeight reals rather than ints.Michael Brasser2011-09-192-4/+35
| | | | | | | | | | When they were ints, it was relatively easy to end up with a different row or column count than expected, because of rounding. Change-Id: Ifc5eba2b5598cbc0220df25f91f031581c3b51a5 Reviewed-on: http://codereview.qt-project.org/5112 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* QtQuick 2.0 elements system testDamian Jansen2011-09-1949-0/+4096
| | | | | | | | | | | Added an application to browse elements. A very basic acceptance test method that each can be performed in under a minute. Added the .qtt for formal usage. Also moved qsgimage system test. Change-Id: Iada9804e2efe1339a072935647962e54aa3b4c6f Reviewed-on: http://codereview.qt-project.org/4380 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* PathAnimation updates.Michael Brasser2011-09-193-22/+151
| | | | | | | | | | Allow smooth orientation changes, smooth interruptions, and implicit "from" in PathAnimation. Change-Id: I2191f6df89ec25d78b1d498827281803a07129c9 Reviewed-on: http://codereview.qt-project.org/4378 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Test fixes and reenables.Michael Brasser2011-09-183-40/+28
| | | | | | | Change-Id: I85e3493855b6fefb682ddb120b15abd003fb00fd Reviewed-on: http://codereview.qt-project.org/5045 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Re-enable commented tests.Jędrzej Nowacki2011-09-164-7/+7
| | | | | | | | | | The tests used QWidget class so widgets library have to be added to pro file. QDeclarativestates works fine. Change-Id: I55c0798a37c3a894b774ba71671569fe007a49d7 Reviewed-on: http://codereview.qt-project.org/5104 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
* Re-enable commented QJS tests.Jędrzej Nowacki2011-09-162-3/+3
| | | | | | | | | | The tests used QWidget class so widgets library have to be added to pro file. QJSValue test already had it. Change-Id: Ib93b2e9b84dea76f5121378c13cc0e1921a4ebd9 Reviewed-on: http://codereview.qt-project.org/5101 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
* Get rid of autotests dependencies on QtWidgetsKent Hansen2011-09-165-10/+10
| | | | | | | Change-Id: I19936b7f8173eff9fc0bc3e19b0a61830dc5a440 Reviewed-on: http://codereview.qt-project.org/5097 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Disable autotests temporarily on MacKent Hansen2011-09-161-0/+2
| | | | | | | Change-Id: Ib34fdbdce2b088e0f79034342ab1fc9c94ea10f9 Reviewed-on: http://codereview.qt-project.org/5080 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix qsgpositioners autotestAlan Alpert2011-09-161-8/+19
| | | | | | | | | | | A waitForWindowShown now takes long enough of the animations to make progress, which had been confusing the initial state checks. Task-number: QTBUG-21414 Change-Id: I3e01f804d6bca7f627012da6cc69b0baabaabaaa Reviewed-on: http://codereview.qt-project.org/5041 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Add exception for qpa, xcb platform for failing testToby Tomkins2011-09-161-0/+3
| | | | | | | | | | Task-number: QTBUG-21416 Change-Id: I69986ea120d908d20a4ef73bf137ca0906dc4351 Reviewed-on: http://codereview.qt-project.org/4729 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix missing/outdated license headers.Jason McDonald2011-09-164-68/+68
| | | | | | Change-Id: Ib5f244a61cb65db829ee83ec9e4d5e4189319a9f Reviewed-on: http://codereview.qt-project.org/4936 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Velocities reported by Flickable in onFlickStarted can be 0Martin Jones2011-09-164-2/+99
| | | | | | | | | | | | | | | Change 55cfbdb7c64068ae68f7baaceb8acfb96cb0c07e manually applied from Qt 4.7 Ensure the smoothed velocity is set at the start of the flick. Ensure that the smoothed velocity animation isn't restarted unless there is new valid data. Change-Id: Ia77249be9980aba268a1bfa0ea3f69c49fa09e5e Reviewed-by: Bea Lam Reviewed-on: http://codereview.qt-project.org/4712 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QJSValue autotest.Jędrzej Nowacki2011-09-151-1/+1
| | | | | | | | | The test depends on widgets library. Change-Id: I22cd3cbf9b3a2e3ed8d5c28cd8d5e44b6e33c4f1 Reviewed-on: http://codereview.qt-project.org/4792 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix anchorRewindBug test failure.Michael Brasser2011-09-151-1/+5
| | | | | | | | | Task-number: QTBUG-21396 Change-Id: Ie4397242a953a3b1504873b7fbc63719d0e99081 Reviewed-on: http://codereview.qt-project.org/4927 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Test fixes.Michael Brasser2011-09-1548-73/+66
| | | | | | | Change-Id: Icaf5f287ce5f8fe954c55ec7a60308659ccce547 Reviewed-on: http://codereview.qt-project.org/4935 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Disable compilation of tests/auto/qmltestRohan McGovern2011-09-151-2/+2
| | | | | | | | | | QtQuickTest has currently been disabled, so this test cannot be compiled. Change-Id: I93171125fafe58d925925aa6575290dab9122d4a Reviewed-on: http://codereview.qt-project.org/4845 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* commented out broken autotestsMatthew Cattell2011-09-141-21/+21
| | | | Change-Id: I8bc382afc90c0a1bda0aaab6ab5284560fdfa7d4
* marked some tests as insignificant for nowMatthew Cattell2011-09-1415-13/+32
| | | | Change-Id: I2c309d3a8da30ce2c2fa8529c76e1b3a26226d54
* Fixed failing test in QSGFocusScope.Matthew Cattell2011-09-141-15/+2
| | | | | | added some waits and removed unnecessary lines from autotest Change-Id: I847bde6db5222b12d0f0b88a8c323fd09aad9d7c
* fixed broken testMatthew Cattell2011-09-141-1/+1
| | | | Change-Id: I75655620bcd12b9a59eedde0bad489c4d31bbb2e
* Merge branch 'refactor'Gunnar Sletta2011-09-1349-366/+375
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/items/context2d/qsgcanvasitem.cpp src/declarative/items/context2d/qsgcontext2d.cpp src/declarative/items/context2d/qsgcontext2d_p_p.h src/declarative/particles/qsgcustomparticle.cpp src/declarative/particles/qsgparticlesystem.cpp Change-Id: I24e81d3652368c5031305ffa7f969f9f2c249c6c
| * fixed failing autotestMatthew Cattell2011-09-121-9/+4
| | | | | | | | | | | | | | Change-Id: I3a21821ce870af75741afcb3219a552e2fc5a155 Reviewed-on: http://codereview.qt-project.org/4688 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * Merge branch 'master' into refactorGunnar Sletta2011-09-1259-317/+4306
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/declarative/cppextensions/qwidgets/qwidgets.pro examples/declarative/minehunt/main.cpp examples/declarative/minehunt/minehunt.pro src/declarative/items/context2d/qsgcontext2d.cpp src/declarative/items/qsgflickable.cpp src/declarative/items/qsgtextedit.cpp src/declarative/items/qsgtextinput.cpp src/declarative/particles/qsgangleddirection.cpp src/declarative/particles/qsgcumulativedirection.cpp src/declarative/particles/qsgcumulativedirection_p.h src/declarative/particles/qsgfollowemitter.cpp src/declarative/particles/qsgmodelparticle.cpp src/declarative/particles/qsgparticlesystem.cpp src/qtquick1/util/qdeclarativeview.h tests/auto/declarative/examples/examples.pro tests/auto/declarative/qsgfocusscope/tst_qsgfocusscope.cpp Change-Id: Ib4be2a5e742dee1a399d73da97161736f77448e5
| * | fixed autotestMatthew Cattell2011-09-091-26/+13
| | | | | | | | | | | | | | | | | | | | | removed debug statements Change-Id: Id09e3a6a43b5d5170d8b50b10cc35eb8c4e1f3d0 Reviewed-on: http://codereview.qt-project.org/4472 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | partial build fix of qtquick1 autotestsMatthew Cattell2011-09-0910-13/+13
| | | | | | | | | | | | | | | | | | Change-Id: Ic2106ec80e1e5402f4f9bf71cc4cf23ec4657046 Reviewed-on: http://codereview.qt-project.org/4546 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | fixup tests to build with refactorMatthew Cattell2011-09-0920-177/+146
| | | | | | | | | | | | | | | | | | Change-Id: Iab4adc9e19fab67402918bb737fff2fce6c292bd Reviewed-on: http://codereview.qt-project.org/4545 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | uncomment testsMatthew Cattell2011-09-081-584/+584
| | | | | | | | | | | | | | | | | | | | | Change-Id: I8aea71cfddb38fe1a24a74ca736a39e3f8817a5b Reviewed-on: http://codereview.qt-project.org/4464 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | get various autotests working for refactorMatthew Cattell2011-09-085-607/+631
| | | | | | | | | | | | | | | | | | | | | Change-Id: I35a9ce1421e87351a9ce4834158d201f84280a65 Reviewed-on: http://codereview.qt-project.org/4461 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | rename QSGGeometry::stride() to sizeOfVertex for symetry with indexGunnar Sletta2011-09-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also support GL_UNSIGNED_INT as index type when supported by GL Change-Id: I0988e102c8a04ce6cd02fb02528204ba810f853a Reviewed-on: http://codereview.qt-project.org/4453 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | fixed resizemodelitemMatthew Cattell2011-09-071-2/+22
| | | | | | | | | | | | | | | | | | | | | Change-Id: I5b155fc2017c1b9b0fedc7e7af398f31151dfb4d Reviewed-on: http://codereview.qt.nokia.com/4347 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | fixed clickLink and other testsMatthew Cattell2011-09-071-48/+18
| | | | | | | | | | | | | | | | | | | | | Change-Id: Iadd83093481c14c1d565933ab0d052934c119891 Reviewed-on: http://codereview.qt.nokia.com/4328 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | make test buildMatthew Cattell2011-09-071-2/+2
| | | | | | | | | | | | | | | | | | | | | Change-Id: Id640db28b5a827a7f66f663684019c542987a3f4 Reviewed-on: http://codereview.qt.nokia.com/4290 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | make test buildMatthew Cattell2011-09-071-19/+18
| | | | | | | | | | | | | | | | | | | | | Change-Id: Ia22047e0c03290109f6d5489febcc750caea533f Reviewed-on: http://codereview.qt.nokia.com/4285 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | fixed to work with qsgcanvasMatthew Cattell2011-09-061-2/+4
| | | | | | | | | | | | | | | | | | Change-Id: Ia044bb738469fdd2c9ecc6154ac51851db3e0e7f Reviewed-on: http://codereview.qt.nokia.com/4270 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | qsgcanvas autotest made to work with refactor and added break statement to ↵Matthew Cattell2011-09-061-33/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | qsgcanvas.cpp in event processing amended wait times / changed include for private headers Change-Id: I4f790907268be357986e181e4624f8e54efcb2ec Reviewed-on: http://codereview.qt.nokia.com/4256 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * | Fix export symbols for QtDeclarative and QtQuick1.Friedemann Kleint2011-08-311-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix build on Windows and compiler warnings. Requires 090ee21eac7257644422e35395194e5fd7fb8efa in qtbase. Change-Id: Ief8da504ccd3e2c2e78644cc9943d685c4302019 Reviewed-on: http://codereview.qt.nokia.com/3988 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
| * | Merge remote-tracking branch 'origin/master' into refactorLars Knoll2011-08-3122-0/+631
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/declarative.pro Change-Id: I9c6d8447e1254c6acd32fa0775ff6a79d0d66acd
| * \ \ Merge branch 'master' into refactorGunnar Sletta2011-08-3196-789/+828
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/v8 src/declarative/declarative.pro src/declarative/items/qsgcanvas.cpp src/declarative/items/qsgshadereffectsource_p.h src/declarative/items/qsgview.cpp src/declarative/particles/qsgcustomparticle.cpp src/imports/gestures/gestures.pro src/imports/particles/particles.pro src/plugins/qmltooling/qmldbg_inspector/qmldbg_inspector.pro src/qtquick1/qtquick1.pro tests/auto/declarative/examples/examples.pro tests/auto/declarative/qsglistview/qsglistview.pro tests/auto/qtquick1/qdeclarativeviewer/qdeclarativeviewer.pro Change-Id: I423344f83e1835116cad531b877fde6e68a8849a
| * \ \ \ Merge branch 'master' into refactorGunnar Sletta2011-08-25115-497/+5367
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/items/qsgcanvas.cpp src/declarative/items/qsgitem.cpp src/declarative/items/qsgtextnode.cpp tests/auto/declarative/examples/examples.pro tools/qmlviewer/qmlviewer.pro Change-Id: Icbb0ef5dc79b658c62fd2b2c25a66c9bb3cbeb10
| * | | | | cleaned up declarative autotests to build with refactor branchMatthew Cattell2011-08-2411-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I782ebc6d3245fc05e193ecd9b8712aea11a31f9e Reviewed-on: http://codereview.qt.nokia.com/3412 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* | | | | | Fixed tst_qgstextinputToby Tomkins2011-09-131-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit e71904e231e27e6f6f88b35c4a7e2d7cf8ba2640, this was commented out, this does not relate to the removal of v8 from declarative. (related http://codereview.qt-project.org/#change,3093) Change-Id: Idcc23e27577df6f53ddf256c1ea74bf7ecc5c351 Reviewed-on: http://codereview.qt-project.org/4621 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* | | | | Restructure test to use QTRY_ macro for instability.Toby Tomkins2011-09-121-47/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructure test to use QTRY_ for asynchronous gui functions. Remove reference to specific X11 and generalise event queue processing for all platforms. Change-Id: I38d8b7419d644ea1d8558f88b48f8b4004804c32 Reviewed-on: http://codereview.qt-project.org/4495 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* | | | | Fix missing and outdated license headers.Jason McDonald2011-09-093-51/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I940ced2e84a86daabc5158d348b05b7532cb1c22 Reviewed-on: http://codereview.qt-project.org/4314 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* | | | | make the testcase name the same in both plain text and xml/xunit logs for ↵Charles Yin2011-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qmltest Change-Id: I911b3c7ba698b6c94aaa712eeaa917301c651e64 Reviewed-on: http://codereview.qt-project.org/4112 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* | | | | Only fast-foward states when there is a transition.Michael Brasser2011-09-092-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fast-forwarding is only required when we are animating a state change. Task-number: QTBUG-16662 Change-Id: I20e1a056cb3268b92b606be34809bcd0e2bfb898 Reviewed-on: http://codereview.qt-project.org/4390 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* | | | | JSDebugging: Update Auto Test cases.Aurindam Jana2011-09-082-34/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed multiple timers from qml file and updated test case verification. Change-Id: I27a9755a54c893658f76eeaf29f4813dafc71b7d Reviewed-on: http://codereview.qt-project.org/4345 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Stenger <christian.stenger@nokia.com>