diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-12-14 15:27:36 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-12-24 12:17:49 +0000 |
commit | 28f59cea3139a2c810ba4c5e98c5d2142ac7b879 (patch) | |
tree | 357b81d1b8b2e102909510d185e13f0c8f1b842d /tests | |
parent | c6fb435714d589fc98b5be0a014a5cecbdb5b496 (diff) |
Add dummy_imports for qmlimportscanner to find the correct dependencies
Otherwise, some dependencies won't be fulfilled and the following will
fail:
component.setData("import QtQml\nQtObject{}", QUrl())
Task-number: QTBUG-97056
Change-Id: If53c77b992a01051d7e83378723000615be9dfe8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 91930dd3d71f977eb613a0d93f0ef332e2a53392)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qjsmanagedvalue/dummy_imports.qml | 7 | ||||
-rw-r--r-- | tests/auto/qml/qjsvalue/dummy_imports.qml | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qjsmanagedvalue/dummy_imports.qml b/tests/auto/qml/qjsmanagedvalue/dummy_imports.qml new file mode 100644 index 0000000000..1cc20b8aba --- /dev/null +++ b/tests/auto/qml/qjsmanagedvalue/dummy_imports.qml @@ -0,0 +1,7 @@ +// This file exists for the sole purpose for qmlimportscanner to find +// which modules it needs to extract for deployment. +// Otherwise, it fails to find the imports that are expressed in C++ + +import QtQml + +QtObject { } // This is needed in order to keep importscanner happy diff --git a/tests/auto/qml/qjsvalue/dummy_imports.qml b/tests/auto/qml/qjsvalue/dummy_imports.qml new file mode 100644 index 0000000000..1cc20b8aba --- /dev/null +++ b/tests/auto/qml/qjsvalue/dummy_imports.qml @@ -0,0 +1,7 @@ +// This file exists for the sole purpose for qmlimportscanner to find +// which modules it needs to extract for deployment. +// Otherwise, it fails to find the imports that are expressed in C++ + +import QtQml + +QtObject { } // This is needed in order to keep importscanner happy |