diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-26 10:17:05 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-01-26 13:19:24 +0100 |
commit | 74060990bc83b8714d017da6b2238b00e6aba0e4 (patch) | |
tree | 7a4b580fb89436e795c3f8103bf9c010f27827aa /tests/auto/qml/qmllint/data | |
parent | 7d8552d0753ccf62b14ae3cbdca200602a1050b0 (diff) |
QQmlJSTypeReader: Guard against empty JS files
Change-Id: Ie52ce15b7fa960ce84a6d17a21a0e307a38c726e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r-- | tests/auto/qml/qmllint/data/Empty.js | 0 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/badScript.qml | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/Empty.js b/tests/auto/qml/qmllint/data/Empty.js new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/qml/qmllint/data/Empty.js diff --git a/tests/auto/qml/qmllint/data/badScript.qml b/tests/auto/qml/qmllint/data/badScript.qml new file mode 100644 index 0000000000..13f3e33acc --- /dev/null +++ b/tests/auto/qml/qmllint/data/badScript.qml @@ -0,0 +1,6 @@ +import QtQml +import "Empty.js" as Foo + +QtObject { + objectName: Foo.stuff() +} |