aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml
Commit message (Collapse)AuthorAgeFilesLines
* improve dependencies of qmlparser testOswald Buddenhagen2013-03-162-2/+2
| | | | | | | | | | | first, this doesn't need gui. second, use qml instead of qmldevtools - there is no need to use the static library here, and after bootstrapping it would pose a real problem (testlib is not bootstrapped). on the downside, this makes the test rely on private_tests. Change-Id: Ic550fa05dcd0f3ba333850640a5b7e3fdd47d905 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-03-144-16/+17
|\ | | | | | | | | | | | | Conflicts: tests/auto/qml/debugger/qv8profilerservice/qv8profilerservice.pro Change-Id: I2fd99ed8bd03302b9bbf31e6f21990f6455c4f1c
| * Improve timer dependent tests.Frederik Gladhorn2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tst_QQuickLoader::loadedSignal depended on sharing the engine with simultaneousSyncAsync and that function being run before it. After each test run call clearComponentCache() as that is important for caching of the network tests. The test server would send the item after 500ms. Sometimes the CI would be faster or slower. Instead of relying on timing, simply call a function when the reply should be sent. Change-Id: Ifb0447041197e1cba103570597a62a2510d31aab Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
| * Fix warning about uninitialized value in QML-ECMA-test (CLANG).Friedemann Kleint2013-03-111-1/+1
| | | | | | | | | | Change-Id: Ifcc3ef0e0e65245758697d7302e8227bb6e748f7 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
| * Fix warning about use of uninitialized value in QML-debug helpers.Friedemann Kleint2013-03-111-14/+14
| | | | | | | | | | Change-Id: Ifcba9c1224dfa7db069ef71b1bb39e3c7658a7b5 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
| * Fix warning about adding int to a QString (CLANG).Friedemann Kleint2013-03-111-1/+1
| | | | | | | | | | | | Change-Id: Ibc84dcbe5ca4519bb1ac25e5d5463ef58c48190e Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
| * Mark flaky tst_qv8profilerservice test as insignificant on MacKai Koehne2013-02-281-0/+2
| | | | | | | | | | | | | | Task-number: QTBUG-29975 Change-Id: Ia80fab4342c365e08fde56812bd331ee7ce13bc7 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Add QtQml.Models moduleAlan Alpert2013-03-126-0/+172
| | | | | | | | | | | | | | | | | | | | | | The moved Model classes can now be exposed in a QtQml import. To keep the QtQml import resticted to more core functionality, they are being exposed in a plugin module. Change-Id: I0a84642a72c7c9bbf9b6ffd2a6c33549f8e61c29 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Fixed some auto testsBernd Weimer2013-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | In the listmodel test an error description was not converted to a string. In the pathview test, number literals are always interpreted as double, but qreal can also be float, which lead to failing tests. Constructor usage prevents "expected data of type 'float', got 'double'". Change-Id: I0c760486de0ba4df6a5e9a33e9528ca7d7a1a63e Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | Fix warnings about overloaded virtual functions in tests (CLANG).Friedemann Kleint2013-03-111-2/+2
| | | | | | | | | | Change-Id: I1f4bda77d0520766813201726f53b439b6094a24 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* | Disable qv8profilerservice test. It is very unstableGunnar Sletta2013-03-071-0/+1
| | | | | | | | | | Change-Id: Ic7fada8ca457b15fb62a47d2137de7d6f8b1711a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* | Add core application functionality to Qt.application in QMLAlan Alpert2013-03-051-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This exposes some information to QML which is available on the QCoreApplication instance. A future change should make it possible to restrict this for use in scripting environments (which should not have access to the QCoreApplication). That has been left out of this change because proper support for such restrictions is not yet in place. Change-Id: Ica144fcfb0b42fa6df8d0cb1c7c03eb97282b489 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Work with synchronous replies from a custom QNetworkAccessManagerAlan Alpert2013-03-041-0/+49
| | | | | | | | | | | | | | | | Forward port of e5783b79887299d094 from QtQuick 1. Task-number: QTBUG-27723 Change-Id: I4332dd72bb9d65167307c1ac5ce24e93b14cff5f Reviewed-by: Peter Hartmann <phartmann@rim.com>
* | Add qmlRegisterType for Composite TypesAlan Alpert2013-02-187-5/+33
| | | | | | | | | | | | | | | | | | This is equivalent functionality to registering a composite type in a qmldir file, a type name in a versioned module is associated with a given file. This function now allows that to be done easily from C++. Change-Id: I1cf44b92c3ad7fee593f4f84773c35b56253e628 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* | Add Composite Types to QQmlTypeAlan Alpert2013-02-188-1/+89
| | | | | | | | | | | | | | | | | | When a composite type is loaded from a QML file, it now generates a QQmlType entry in QQmlMetaTypeData. Change-Id: I9b127dff7955456aacb25138fa6ea8efb7bb9221 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com> Reviewed-by: Alan Alpert <aalpert@rim.com>
* | Move the model classes from QtQuick to QtQmlAlan Alpert2013-01-246-120/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for proper support of non-GUI instantiators in QtQml. Only private C++ classes are affected. Aside from name changes, model classes now operate on QObjects instead of QQuickItems, leading to minor changes in the implementation of QtQuick classes using them. The old QML type names will still be registered in the QtQuick import for the forseeable future, but pointing to the new classes. The new QML types will be added in a second commit. Classes Affected: QQuickVisualDataGroup -> QQmlDataGroup QQuickVisualDataModel -> QQmlDelegateModel QQuickVisualItemModel -> QQmlObjectModel QQuickVisualModel -> QQmlInstanceModel QQuickChangeSet -> QQmlChangeSet QQuickListAccessor -> QQmlListAccessor QQuickListCompositor -> QQmlListCompositor QQuickPackage -> QQuickPackage (just moved for now) Change-Id: Ia19e630e53bfa9e5d459e289596cd11df1ea3930 Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
* | Move ListModel and ListElement to the QtQml importAlan Alpert2013-01-2419-104/+103
| | | | | | | | | | | | | | | | | | | | | | | | They're already in the QtQml module, but were left in the QtQuick import because they were considered to be of minimal use without QtQuick types. QtQml types are being developed would could make ListModel useful without QtQuick, indicating that they should no longer be considered QtQuick depedent. Change-Id: I31499f2cc23baf4bc70fb451ba164408bed89ff6 Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
* | Merge branch 'stable' into devGunnar Sletta2013-01-17122-122/+122
|\| | | | | | | | | | | | | | | Conflicts: src/qml/doc/qtqml.qdocconf src/quick/doc/qtquick.qdocconf Change-Id: I087fa14720995a5e53c43567dc4a3c29eb9992a9
| * Update copyright year in Digia's license headersSergio Ahumada2013-01-10120-120/+120
| | | | | | | | | | | | Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
| * make use of qtHaveModule()Oswald Buddenhagen2013-01-102-2/+2
| | | | | | | | | | | | | | Change-Id: I23f11c944fafb5863a960dcc83bc1e57e189f662 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* | Make numeric-literal parsing even more robust.Erik Verbruggen2013-01-162-1/+3
| | | | | | | | | | | | | | | | The numeric value could overflow a unsigned 64-bit integer, so instead just buffer the string and have libc's strtod handle all the conversion. Change-Id: I220e490ddc22363460b0df65a91b47336e747310 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Fix automatic semicolon insertion before ++/-- operators.Erik Verbruggen2013-01-113-0/+28
| | | | | | | | | | | | | | | | Also move the tilde token from isBinop to the lex method, because it is not a binop, but should still be delimited. Change-Id: I532260f4f3ebdde2d38128b41d11bce5a113d1f1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Make numeric-literal parsing more robust.Erik Verbruggen2013-01-112-0/+2
| | | | | | | | | | | | | | | | | | | | | | For cases where large non-fp numeric literals might end up triggering coversion or rounding errors when stored as doubles when lexing. This is a corner case, but it does trigger a case or two in the ECMA5 test suite (test262). Change-Id: Ie6d355e28379aba9a339c4e345b5d2a0c32d5fdd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Reenable temporarily skipped QML testsPeter Varga2013-01-092-6/+0
| | | | | | | | | | Change-Id: I1e57b0e39c539648602cc480e296db6c6948ff39 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Update some QML tests and temporarily skip themPeter Varga2013-01-092-15/+11
| | | | | | | | | | | | | | | | | | | | These tests should be skipped until the next V8 update is landed into QtJSBackend. The expected results of these tests currently check wrong behavior. These bugs have been already fixed in the official V8 thus we need to update and skip them until the fix is landed into QtJSBackend. Change-Id: I77d8ee50b45cd6599cbb5735ddef7d1461aeceab Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Fix semicolon insertion before pre-incr/decr operators.Erik Verbruggen2013-01-083-0/+82
| | | | | | | | | | | | | | | | Do not insert a semicolon if the previous token was a binop or a question mark. Change-Id: Id2ee1d3cb57fa3fe20bfc0078d06f9e2619d88f1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Fix unicode escape sequence validation in strings.Erik Verbruggen2013-01-084-3/+11
| | | | | | | | | | | | | | | | | | Give an error message when the sequence does not conform to the grammar. Note that both \u and \x (without any numbers following it) are not valid escape sequences in ECMA5.1. Change-Id: I14348984c680b0ce86e05faad5630afc1e98cd02 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Merge "Merge branch 'stable' into dev" into refs/staging/devFrederik Gladhorn2013-01-0756-278/+220
|\ \
| * | Merge branch 'stable' into devFrederik Gladhorn2013-01-0456-278/+220
| |\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/qml/qml/parser/qqmljskeywords_p.h sync.profile tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp Change-Id: I9bc6659e1bab924009167bec567354d40a77a8cb
| | * Quick tests: Introduce QQmlMessageHandler.Friedemann Kleint2012-12-208-146/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add QQmlMessageHandler class that can be used to record messages into a QStringList. It also makes sure that the old message handler is reinstalled if the test fails. Task-number: QTBUG-28611 Change-Id: I0fff7bc11e188cf47178d9573e5f2eead693bc10 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
| | * Fix compiler warnings in declarative tests.Friedemann Kleint2012-12-207-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Unused variables - Missing enumeration values in switch - truncation from double to float - truncation from size_t to int - Missing initializers - Mix of operator & and bool | Change-Id: Ib212aeea41befef193f12300a1d9814a60f183af Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
| | * Fix tst_qqmlbundle on Windows.Friedemann Kleint2012-12-192-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plugin was not found since it was in the Release/Debug subfolder, respectively. Task-number: QTBUG-28611 Change-Id: Ieaea7c67e2524a7d0ca3011d96f31b15929e551c Reviewed-by: Janne Anttila <janne.anttila@digia.com>
| | * Fix tst_qqmllanguage for MSVC.Friedemann Kleint2012-12-182-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use \u. Task-number: QTBUG-28611 Change-Id: I85fce2f945c97421b8b35fb8276cd4ee3cc19d38 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
| | * Move the Q_DECLARE_METATYPE to where it should be.Stephen Kelly2012-12-112-1/+1
| | | | | | | | | | | | | | | Change-Id: Id17b30ed59fd9e68229bb80de5b9e4bc2aa0b75d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
| | * Only free context if the owning QV8ContextResource gets destroyedPhilip Lorenz2012-12-101-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since fdeee38b781376012c4f086276c3c376726c8839 QQmlXMLHttpRequest stores the calling context for later use. This leads to issues after the first request completes and the wrapping QV8ContextResource gets freed by garbage collection and therefore removes the associated QQmlDataContext which may still be required for later calls (e.g. if the calling context is part of a stateless library). This patch introduces an ownership flag for QV8ContextResource which indicates if the associated context should be cleared when the object is destroyed. Task-number: QTBUG-28351 Change-Id: I552ebb5c55b889eb33f3884283c8fdf037ac33be Reviewed-by: Alan Alpert <aalpert@rim.com>
| | * Remove 'com.nokia' string from autotestAlan Alpert2012-12-0539-97/+97
| | | | | | | | | | | | | | | Change-Id: Ic318dbe7a48412e9689ca0f4506c7098d9f48b5e Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
| | * Declare QJSValue as a metatype where it is defined.Stephen Kelly2012-12-044-6/+0
| | | | | | | | | | | | | | | | | | | | | Instead of in multiple different TUs, therefore causing ODR violations. Change-Id: I08d3624d3ed5a995e96488361665afa197fb9fc9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* | | Fix: disallow incomplete hex numbers "0x" and "0X".Erik Verbruggen2013-01-074-0/+26
|/ / | | | | | | | | | | | | See also ECMA 5.1, 7.8.3, rule HexIntegerLiteral. Change-Id: I356dc7cfbc88890bb7f35c8bc4219a37633177f8 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Added parsing for getter/setter definitions in property assignments.Erik Verbruggen2012-12-171-0/+14
| | | | | | | | | | | | | | Specified in ecma 5.1, 11.1.5. Change-Id: I93d12593534ed8a987922c8aa329124940e77c6f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Fix the test suiteLars Knoll2012-12-1119-352/+15
| | | | | | | | | | | | | | | | | | | | | | | | We now fail when parsing octal numbers or escape sequences. This is ok according to the EcmaScript 5.1 spec. So remove all usages of these numbers or sequences. In addition delete an invalid test case that can't possibly be parsed correctly. V8 also chokes on it. Change-Id: I889de2810310f38206343d16175f9e31ddb44d30 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* | Throw a parse error on octal numbers and escape sequencesLars Knoll2012-12-1112-0/+123
|/ | | | | | | | | | | | | This is compliant with EcmaScript 5.1, where octal numbers and escape sequences are an optional and deprecated part of the syntax. Allow leading 0's in qml mode, but interpret the result as decimal. This is also to keep compatibility with existing code. Change-Id: Ic3450ec3dd17966846751ee688a90c65939ba78f Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Stabilize tst_qqmltimerAlan Alpert2012-12-011-28/+44
| | | | | | | | Use consistent timing on the unified timer instead of qWait Change-Id: I76c402081062f7f6849bd421e90bc96f08e8d959 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Limit case-sensitivity check in QML to file names.Friedemann Kleint2012-11-301-4/+5
| | | | | | | | | | Provide for checking relative paths only; default to file names. Currently, the checking triggers on a drive letters and installation folder names, which is too strict. Task-number: QTBUG-28277 Change-Id: I1174bb0c485eeb1ffee10bb2a523d6629c57728b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Made tst_QQmlDebugJS insignificant on Mac.Janne Anttila2012-11-301-0/+2
| | | | | | | | | | | | | | | | | | This test has been failing often on Mac. It seems that test case only fails with Qt5 master integration, but not with QtDeclarative CI. This test has now failed twice consecutive in virtualized Mac OSX machines. Since I'm going to add some more virtual Macs to CI tomorrow morning, making this test case insignificant to avoid good changes integrating in additional capacity. For more information, see the following bug report. Task-number: QTBUG-28263 Change-Id: I3492373f4f034c27fdbc207e395a40ef96dccbd9 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Move no-Gui related QML types from QtQuick into QtQmlTasuku Suzuki2012-11-2941-129/+523
| | | | | | | | | Task-number: QTBUG-26340 Change-Id: I9049128db2598bf3c7a9d677b774eaae53b54eb5 Reviewed-by: Alan Alpert <aalpert@rim.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Accept missing semicolon after do-while statement.Erik Verbruggen2012-11-262-0/+21
| | | | | | | | | Although not valid according to ECMA 5.1, both JSC and V8 accept a missing semicolon after a do-while loop. (Both JSC and V8 do not do this through automatic semicolon insertion, but handle it as a special case.) Change-Id: Iff2b07b894564740d2dcbf9b1d46bc279d30b9e3 Reviewed-by: Alan Alpert <aalpert@rim.com>
* When declarative debug tests fail in CI, confirm timeout as reasonShawn Rutledge2012-11-081-0/+2
| | | | | | | | | Hope to correct errors like FAIL! : tst_QQmlInspector::reloadQml() 'QQmlDebugTest::waitForSignal( m_client, SIGNAL(responseReceived()))' returned FALSE. () Change-Id: Iebf29d4de0bc19396041565e5a4cd32561345235 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* qmlscene can start with either an Item or Window as the qml rootShawn Rutledge2012-11-053-3/+50
| | | | | | | | | | | Before, it assumed that the root is an Item and needs to have a Window created. But it's useful for an application to have a Window as the root, and it was already possible by writing a different C++ main function (see qtdeclarative/examples/window/window/window.cpp). It doesn't take much to give qmlscene this flexibility too. Change-Id: Ie808e78a42074e13aa9d3c87723ec9ac8fdbaf4a Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Test: Fix tst_qqmlecmascript::exportDateCaroline Chao2012-10-292-2/+2
| | | | | | | Get timezone offset of the date specified and not the default value. Change-Id: I58dba896098cbee72a2e4ec15ba2c928121e6cff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Mark failing tests as insignificant.Stephen Kelly2012-10-241-0/+2
| | | | | Change-Id: I2dbed0d5fe632a034a0f656c2e3ccc3e63d4078b Reviewed-by: Richard J. Moore <rich@kde.org>