summaryrefslogtreecommitdiff
path: root/tests/auto/qml
Commit message (Collapse)AuthorAgeFilesLines
* Long live the king!hjk2012-01-2638-38/+38
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* QmlJS checks: Disable warnings about expression statements in bindings.Christian Kamm2011-12-022-4/+24
| | | | | Change-Id: Ic3aca50bec93ec3b810dbda2f9b57eefb966bbdf Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QmlJS indenter: Fix braceless switch/try/with bindings.Christian Kamm2011-12-021-15/+107
| | | | | Change-Id: Iee25f3f9ec38b1b7fc2697f390386c9a60cb8347 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QmlJS reformatter: Fix object literals.Christian Kamm2011-11-303-3/+14
| | | | | | | The comma token seems to be invalid. Change-Id: I859fa58ba0ba1e975e0cf1105c2b53aac848fb0d Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* QmlJS checks: Don't warn for fallthrough on the last clause.Christian Kamm2011-11-291-0/+2
| | | | | Change-Id: Ica84ced241eafd82cededa65d2e90f855e448f89 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QmlJS checks: Accept 'fallthrough' comment to terminate case blocks.Christian Kamm2011-11-291-0/+42
| | | | | Change-Id: Icf71416e8aa892089b0918529b94f4cd6a1db5a3 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-251-0/+15
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: qtcreator.pri src/libs/qmljs/qmljstypedescriptionreader.cpp src/plugins/analyzerbase/startremotedialog.ui src/plugins/qmldesigner/designercore/include/rewriterview.h src/plugins/qt4projectmanager/makestep.cpp Change-Id: If9d15a8c8f73106585fd8ce6ac47c253a40af6b1
| * QmlJS indenter: Fix hang when using 'else (a==a) {}'.Christian Kamm2011-11-221-0/+15
| | | | | | | | | | | | | | Change-Id: Id7b8fba6707b1eaabf8065854f357cf600c809c5 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> (cherry picked from commit 567e68a42a0a57f6dc83d39cf664e48c1dee6f9b) Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* | QmlJS check: Extend "don't use var" performance warning.Christian Kamm2011-11-223-2/+25
| | | | | | | | | | | | | | | | | | | | * now also recognizes color, rect, point, size, vector3d * to do detect these correctly, set the return types on a number of builtin Qt.* functions * add test Change-Id: Ieaeb73be208af2d47e1bb4fa1485dc876705ee20 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* | QmlJS tests: Move 'basic' codemodel test to QmlJSTools plugin.Christian Kamm2011-11-153-284/+1
| | | | | | | | | | Change-Id: I2310f914fb200db18ff4148d6f7fa9824fe2393e Reviewed-by: Bill King <bill.king@nokia.com>
* | QmlJS: Add 'reformat' action which regenerates the whole file.Christian Kamm2011-11-155-1/+235
| | | | | | | | | | Change-Id: I0aed6c6e197e122200d720eb9291a083095a6299 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* | QmlJS indenter: Fix indent after do-while without semicolon.Christian Kamm2011-11-151-1/+20
| | | | | | | | | | Change-Id: I4909f4640e7cd115b6c5c54c7aca7fca511653c9 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* | Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-1138-76/+76
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/qmljs/qmljsinterpreter.cpp src/libs/qmljs/qmljsinterpreter.h src/plugins/debugger/qml/scriptconsole.cpp src/plugins/git/gitplugin.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas.cpp src/plugins/qmlprofiler/canvas/qdeclarativetiledcanvas_p.h Change-Id: Iad59c8d87c72a21c79c047e374c0ab689998af39
| * all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-0338-76/+76
| | | | | | | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* | QmlJS: Fix tests.Christian Kamm2011-11-095-7/+17
| | | | | | | | | | | | | | | | | | * Some were not adjusted for the Document::MutablePtr change. * The basic test failed because the welcome plugin failed to load. * The check test wasn't updated for @disable -> @disable-check. Change-Id: Iae848832f740363bc33915d7a202a6cff08e2189 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-11-011-4/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/qmljs/qmljsinterpreter.cpp src/libs/qmljs/qmljsinterpreter.h src/plugins/madde/maemopackagecreationstep.cpp src/plugins/projectexplorer/buildmanager.cpp src/plugins/qmljstools/qmljsqtstylecodeformatter.cpp src/plugins/qmljstools/qmljsqtstylecodeformatter.h tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp Change-Id: I63ab2ba5dac006c37ccfbae55b023396a4676ff7
| * QmlJS indenter: Never touch indent of multi-line strings.Christian Kamm2011-10-311-4/+24
| | | | | | | | | | | | Task-number: QTCREATORBUG-6368 Change-Id: Iae68427e429e625214bc0729aaaf313dc3371570 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS checks: Warn about extra message suppressions.Christian Kamm2011-10-211-0/+15
| | | | | | | | | | | | Reviewed-by: Fawzi Mohamed Change-Id: I4038cd863ba80c1719417cd03b755b047f7d8b5e Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
* | QmlJS indenter: Fix hang when using 'else (a==a) {}'.Christian Kamm2011-10-191-0/+15
| | | | | | | | | | Change-Id: Id7b8fba6707b1eaabf8065854f357cf600c809c5 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* | QmlJS indenter: Improve indentation of function literals.Christian Kamm2011-10-191-2/+29
| | | | | | | | | | Change-Id: Ic79745eefbf37e42d4dd42e73d3752bed34bbfa9 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS indenter: Move reusable code to qmljs lib.Christian Kamm2011-10-191-1/+1
| | | | | | | | | | Change-Id: I5ab50b586109a9736cda48245807571ce10dfb5b Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS: Introduce UnknownValue.Christian Kamm2011-10-181-16/+27
| | | | | | | | | | | | | | To distinguish known-to-be-undefined from a genuinely unknown value. Change-Id: I606b4ea4d726f94553400b8950d3c0a4e76564a8 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | Merge remote-tracking branch 'origin/2.4'Eike Ziller2011-10-171-0/+24
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: qtcreator.pri src/libs/qmljs/qmljstypedescriptionreader.cpp tests/auto/qml/qmleditor/qmlcodeformatter/tst_qmlcodeformatter.cpp Change-Id: Id032187023bb42f259a87545ceeb3c965dd01a32
| * QmlJS indenter: Fix ternary multiline indent.Christian Kamm2011-10-171-0/+24
| | | | | | | | | | | | Task-number: QTCREATORBUG-6208 Change-Id: I7e5267291bc01226b5339cb4abdbb15856c58477 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
* | Json: Fix indenter for json files.Christian Kamm2011-10-121-0/+28
| | | | | | | | | | | | | | Change-Id: Id864509dd78a70fc34a3798b80f7e1c8991181f4 Reviewed-on: http://codereview.qt-project.org/6038 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS: Add more value_casts.Christian Kamm2011-10-121-3/+3
| | | | | | | | | | | | | | | | | | | | And switch all existing dynamic_casts to value_casts. Change-Id: I93b89358e4802080f40b332074c64f4e91a2bc4c Reviewed-on: http://codereview.qt-project.org/6311 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS: Rename QmlObjectValue -> CppComponentValue.Christian Kamm2011-10-121-6/+6
| | | | | | | | | | | | | | | | | | Reviewed-by: Fawzi Mohamed Reviewed-by: Thomas Hartmann Change-Id: Ib89388d5a5678403e4637eec5829f3520637ee27 Reviewed-on: http://codereview.qt-project.org/6310 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Sanity-Review: Christian Kamm <christian.d.kamm@nokia.com>
* | QmlJS checks: Allow calling some builtin constructors as functions.Christian Kamm2011-10-121-0/+4
| | | | | | | | | | | | | | | | | | | | String, Boolean, Number and Object perform type conversion. Date returns the current date. Change-Id: I51e5bcbb0fa85ceb30b3ee3749f96c3e3b12ca21 Reviewed-on: http://codereview.qt-project.org/6043 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS checks: Add warning about 'eval'.Christian Kamm2011-10-101-0/+9
| | | | | | | | | | | | | | | | | | Migrated from QtChecker. Change-Id: I4b3e8993c7b9f697497d2199b24bf49379dbc1b4 Reviewed-on: http://codereview.qt-project.org/5860 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS checks: Warn when using some builtin constructors.Christian Kamm2011-10-102-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | Number, String, Array, Object, Function and Boolean should not be used. Migrated from QtChecker. Change-Id: I8aee41f12389196ed49c44e26eb04d3fac040a2b Reviewed-on: http://codereview.qt-project.org/5859 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* | QmlJS checks: Add confusing +/- check.Christian Kamm2011-10-102-1/+15
| | | | | | | | | | | | | | | | | | Migrated from QtChecker. Change-Id: I06115152f979f9abfa9cbdf4a3e2e63a51ea7284 Reviewed-on: http://codereview.qt-project.org/5858 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* | QmlJS checks: Add severity and unique id to messages.Christian Kamm2011-10-106-96/+75
|/ | | | | | | Change-Id: I2cded26524c3f64152107e65d740658e3003ffac Reviewed-on: http://codereview.qt-project.org/5790 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS checks: Add tests and fix small bugs for 'unreachable'.Christian Kamm2011-09-201-0/+104
| | | | | | | Change-Id: Iaf9febc841130fa913fcc071ed0bf28ff9e0b63b Reviewed-on: http://codereview.qt-project.org/5149 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS tests: Fix compile of 'check' test.Christian Kamm2011-09-141-1/+1
| | | | | | Change-Id: I6cccb55d4c49eb6cf77ac4d1378d3d7adac95a32 Reviewed-on: http://codereview.qt-project.org/4881 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS checks: Add tests.Christian Kamm2011-09-143-0/+47
| | | | | | Change-Id: I37852b7b4f1720c276fc3aea3b1892613028ec48 Reviewed-on: http://codereview.qt-project.org/4658 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS checks: Correct the check for dangerous == and add tests.Christian Kamm2011-09-142-17/+58
| | | | | | Change-Id: Ie0f4062069bf241020868af34ce6d36146b4b0c7 Reviewed-on: http://codereview.qt-project.org/4646 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS: Add infrastructure for tests of QML static checker.Christian Kamm2011-09-144-1/+234
| | | | | | Change-Id: Idf49bc0c29ad82456a5fe65e2acced6a4fb130fc Reviewed-on: http://codereview.qt-project.org/4552 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS tests: Make basic test pass again.Christian Kamm2011-09-141-16/+16
| | | | | | Change-Id: Iff7d36e7c7908b267fc02cd46e3f2a173ef5c7b9 Reviewed-on: http://codereview.qt-project.org/4547 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS indenter: Fix labelled statements and break/continue with label.Christian Kamm2011-09-141-10/+115
| | | | | | | | Also do some cleanup to make handling of substatements nicer. Change-Id: I78773fc81d9b0058fa97c5cef393cca34b7fd885 Reviewed-on: http://codereview.qt-project.org/4413 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
* QmlJS indenter: Fix indentation for property initializers.Christian Kamm2011-09-081-14/+18
| | | | | | | | | | property int foo: { used to start an object literal but is a block statement now. Change-Id: I9ffbce4927b444314f1a43aba65ca3d9d234e47c Reviewed-on: http://codereview.qt-project.org/4339 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Share Context.Christian Kamm2011-08-081-1/+2
| | | | | | | | | | | | Previously Context was not entirely thread safe and had to be copied locally. Now it is thread safe and its lifetime managed by QSharedPointer. The non-safe parts were moved into ScopeChain in a previous commit. Change-Id: I851a93de85cbd6391dbea0fe33b011e2e093addb Reviewed-on: http://codereview.qt.nokia.com/1695 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
* QmlJS: Fix basic code model test.Christian Kamm2011-07-122-156/+140
| | | | | | | | Change-Id: If62153e9db56e65e10d008d49f0945d3ea77c4f4 Reviewed-on: http://codereview.qt.nokia.com/1502 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com> Reviewed-by: Bill King <bill.king@nokia.com>
* corrected license headersThomas Murach2011-07-0618-0/+576
| | | | | | | Change-Id: I56fa50745a80abf52488bebe6a5a72cf26932a8b Merge-request: 352 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-on: http://codereview.qt.nokia.com/1251
* Add missing license headers.Christian Kamm2011-07-064-2/+130
| | | | | | Change-Id: I2dc5d18bfffc8389ad0b162b7dc3b5cc2406027f Reviewed-on: http://codereview.qt.nokia.com/1222 Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com>
* Replace qt-info@nokia.com with info@qt.nokia.comhjk2011-07-0615-15/+15
| | | | | | | Change-Id: I61e7cf189a1c4ea04e2a88a80a4f15e43cd3c018 Reviewed-on: http://codereview.qt.nokia.com/1187 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* QmlJS: Fix object literal indent in property initializers.Christian Kamm2011-04-211-0/+26
|
* QmlJS: Fix indent of object literals.Christian Kamm2011-04-211-2/+58
| | | | Reviewed-by: Roberto Raggi
* Fix the qmljs indenter autotest.Christian Kamm2011-04-211-10/+5
| | | | Reviewed-by: Bill King
* Update license.hjk2011-04-1315-210/+195
|
* QmlDesigner.tests: compilefixThomas Hartmann2011-04-041-9/+12
|