diff options
Diffstat (limited to 'tests/auto/qml/qmllint/data/settings')
15 files changed, 63 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/settings/bare/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/bare/.qmllint.ini new file mode 100644 index 0000000000..2dc9ff658c --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/bare/.qmllint.ini @@ -0,0 +1,2 @@ +[General] +DisableDefaultImports=true diff --git a/tests/auto/qml/qmllint/data/settings/bare/bare.qml b/tests/auto/qml/qmllint/data/settings/bare/bare.qml new file mode 100644 index 0000000000..852b8339b9 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/bare/bare.qml @@ -0,0 +1,3 @@ +import QtQuick // Should fail because Bare is specified with no import + +Item {} diff --git a/tests/auto/qml/qmllint/data/settings/plugin/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/plugin/.qmllint.ini new file mode 100644 index 0000000000..a72e0e29e2 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/plugin/.qmllint.ini @@ -0,0 +1,2 @@ +[Warnings] +TestWarning=disable diff --git a/tests/auto/qml/qmllint/data/settings/plugin/elemenpass_pluginSettingTest.qml b/tests/auto/qml/qmllint/data/settings/plugin/elemenpass_pluginSettingTest.qml new file mode 100644 index 0000000000..b9250a2d11 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/plugin/elemenpass_pluginSettingTest.qml @@ -0,0 +1,7 @@ +import QtQuick + +Item { + Rectangle { + radius: 5 + } +} diff --git a/tests/auto/qml/qmllint/data/settings/qmlimports/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/qmlimports/.qmllint.ini new file mode 100644 index 0000000000..c2f9d81743 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmlimports/.qmllint.ini @@ -0,0 +1,2 @@ +[General] +AdditionalQmlImportPaths=subdir diff --git a/tests/auto/qml/qmllint/data/settings/qmlimports/qmlimports.qml b/tests/auto/qml/qmllint/data/settings/qmlimports/qmlimports.qml new file mode 100644 index 0000000000..221ddff254 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmlimports/qmlimports.qml @@ -0,0 +1,3 @@ +import Custom + +Thing {} diff --git a/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/custom.qmltypes b/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/custom.qmltypes new file mode 100644 index 0000000000..b3839652dc --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/custom.qmltypes @@ -0,0 +1,11 @@ +import QtQuick.tooling 1.2 +Module { + dependencies: [] + Component { + name: "Thing" + prototype: "QObject" + exports: [ + "Custom/Thing 1.0", + ] + } +} diff --git a/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/qmldir b/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/qmldir new file mode 100644 index 0000000000..6ad407fd38 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmlimports/subdir/Custom/qmldir @@ -0,0 +1,2 @@ +module Custom +typeinfo custom.qmltypes diff --git a/tests/auto/qml/qmllint/data/settings/qmltypes/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/qmltypes/.qmllint.ini new file mode 100644 index 0000000000..3dc2c8fd1b --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmltypes/.qmllint.ini @@ -0,0 +1,3 @@ +[General] +OverwriteImportTypes=subdir/custom.qmltypes + diff --git a/tests/auto/qml/qmllint/data/settings/qmltypes/qmltypes.qml b/tests/auto/qml/qmllint/data/settings/qmltypes/qmltypes.qml new file mode 100644 index 0000000000..221ddff254 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmltypes/qmltypes.qml @@ -0,0 +1,3 @@ +import Custom + +Thing {} diff --git a/tests/auto/qml/qmllint/data/settings/qmltypes/subdir/custom.qmltypes b/tests/auto/qml/qmllint/data/settings/qmltypes/subdir/custom.qmltypes new file mode 100644 index 0000000000..b3839652dc --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/qmltypes/subdir/custom.qmltypes @@ -0,0 +1,11 @@ +import QtQuick.tooling 1.2 +Module { + dependencies: [] + Component { + name: "Thing" + prototype: "QObject" + exports: [ + "Custom/Thing 1.0", + ] + } +} diff --git a/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/.qmllint.ini new file mode 100644 index 0000000000..92c03b2490 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/.qmllint.ini @@ -0,0 +1,2 @@ +[Warnings] +UnqualifiedAccess=disable diff --git a/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/unqualified.qml b/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/unqualified.qml new file mode 100644 index 0000000000..5a68b757a9 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/unqualifiedSilent/unqualified.qml @@ -0,0 +1,5 @@ +import QtQml + +QtObject { + property int foo: root.x +} diff --git a/tests/auto/qml/qmllint/data/settings/unusedImportWarning/.qmllint.ini b/tests/auto/qml/qmllint/data/settings/unusedImportWarning/.qmllint.ini new file mode 100644 index 0000000000..c012a1fc28 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/unusedImportWarning/.qmllint.ini @@ -0,0 +1,2 @@ +[Warnings] +UnusedImports=warning diff --git a/tests/auto/qml/qmllint/data/settings/unusedImportWarning/unused.qml b/tests/auto/qml/qmllint/data/settings/unusedImportWarning/unused.qml new file mode 100644 index 0000000000..715ebf29d7 --- /dev/null +++ b/tests/auto/qml/qmllint/data/settings/unusedImportWarning/unused.qml @@ -0,0 +1,5 @@ +import QtQml +import QtQml.Models + +QtObject { +} |