qtdeclarative/tests/auto/qml
Simon Hausmann c907eb1b5b Fix use of function expressions with signal handlers
Writing

    onClicked: function(mouseEvent) { ... }

would get silently "accepted" by the engine, but it wouldn't do anything. We
basically wrapped it in a new function, so that it became

    onClicked: function(mouse){ function(mouseEvent() {} }

which is a noop. With older versions this used to produce a syntax error.
However the better fix is to simply support this kind of assignment for more
expressive signal handlers, because now the names of the signal parameters can
be explicitly named (with names of your choice).

Change-Id: I96369f8805fab97509784222f614ee17cf681aba
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Reviewed-by: Michael Brasser <michael.brasser@live.com>
2015-08-24 08:12:47 +00:00
..
animation tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
debugger Allow specification of loadable debug services via command line 2015-08-13 08:30:47 +00:00
parserstress
qjsengine tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qjsonbinding
qjsvalue tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qjsvalueiterator tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qmlmin
qmlplugindump
qqmlapplicationengine
qqmlbinding
qqmlchangeset
qqmlcomponent tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlconnections tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlconsole Don't call the test method assert 2015-08-09 23:06:01 +00:00
qqmlcontext tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlcpputils
qqmldirparser
qqmlecmascript Cleanup qmlcontextwrapper usage in XHR 2015-08-20 20:01:29 +00:00
qqmlengine tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlenginecleanup
qqmlerror
qqmlexpression tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlfileselector
qqmlglobal
qqmlimport
qqmlincubator tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlinfo
qqmlinstantiator Instantiator: Make asynchronous mode work 2015-04-25 20:56:34 +00:00
qqmlitemmodels
qqmllanguage Fix use of function expressions with signal handlers 2015-08-24 08:12:47 +00:00
qqmllistcompositor
qqmllistmodel tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmllistmodelworkerscript tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmllistreference tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmllocale tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlmetaobject
qqmlmetatype tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlmoduleplugin Merge remote-tracking branch 'origin/5.4' into 5.5 2015-04-27 14:40:00 +02:00
qqmlnotifier Fix possible stack overflow with many property bindings 2015-07-21 12:04:27 +00:00
qqmlobjectmodel ObjectModel: add API for dynamic changes 2015-06-10 06:56:18 +00:00
qqmlopenmetaobject Clear stringCache explicitly instead of asserting its emptiness. 2015-06-25 21:51:21 +00:00
qqmlparser
qqmlproperty Merge remote-tracking branch 'origin/5.5' into 5.6 2015-08-18 10:29:47 +02:00
qqmlpropertycache Hold a pointer to the QV4::ExecutionEngine in the property cache 2015-08-19 11:38:31 +00:00
qqmlpropertymap tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlqt tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlsettings
qqmlsqldatabase
qqmlstatemachine Test if the state machine reacts to a QObject signal. 2015-07-15 07:50:22 +00:00
qqmltimer tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmltranslation
qqmltypeloader
qqmlvaluetypeproviders
qqmlvaluetypes tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qqmlxmlhttprequest tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qquickfolderlistmodel tests/qml: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-29 09:44:39 +00:00
qquickworkerscript
qrcqml
qtqmlmodules
qv4debugger Clean up data format for V4 debug connection 2015-08-19 11:28:32 +00:00
v4misc
qml.pro Merge remote-tracking branch 'origin/5.5' into 5.6 2015-08-18 10:29:47 +02:00
runall.sh