qtdeclarative/tests
Ulf Hermann ab71cdafca QML: Warn about variables being used before their declaration
This collides with injected signal parameters. qmlcachegen cannot tell
those cases apart.

[ChangeLog][QML][Important Behavior Changes] QML warns about JavaScript
variables being used before their declaration now. This is almost always
a mistake. It is particularly dangerous in the presence of injected
signal parameters because qmlcachegen cannot identify a name collision
between an injected signal parameter and a variable being used before
its declaration. It therefore miscompiles such code. You can turn off
the deprecation warning using the "qt.qml.compiler" logging category.

Pick-to: 6.1
Task-number: QTBUG-89943
Change-Id: I8a9424ca8c6edd562402fe5c560ba7e8344b5585
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-02-11 17:37:53 +01:00
..
auto QML: Warn about variables being used before their declaration 2021-02-11 17:37:53 +01:00
benchmarks Import property benchmarks from private repo 2021-02-04 09:29:59 +01:00
global
libfuzzer/qml Restore libfuzzer pro files 2021-01-20 15:23:08 +01:00
manual Prefer qHypot() over sqrt(a sum of squares) 2021-02-01 16:40:27 +01:00
system
testapplications QML engine: Deprecate DefaultMethod 2020-12-03 21:12:42 +01:00
.prev_CMakeLists.txt
CMakeLists.txt
README

README

This directory contains autotests and benchmarks based on QTestlib. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.

Linux X11:

   * The user must be logged in to an active desktop; you can't run the
     autotests without a valid DISPLAY that allows X11 connections.

   * The tests are run against a KDE3 or KDE4 desktop.

   * Window manager uses "click to focus", and not "focus follows mouse". Many
     tests move the mouse cursor around and expect this to not affect focus
     and activation.

   * Disable "click to activate", i.e., when a window is opened, the window
     manager should automatically activate it (give it input focus) and not
     wait for the user to click the window.