aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/Singletons
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/Singletons')
-rw-r--r--tests/auto/qml/qmllint/data/Singletons/MissingPragma.qml2
-rw-r--r--tests/auto/qml/qmllint/data/Singletons/MissingQmldirSingleton.qml3
-rw-r--r--tests/auto/qml/qmllint/data/Singletons/qmldir3
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/Singletons/MissingPragma.qml b/tests/auto/qml/qmllint/data/Singletons/MissingPragma.qml
new file mode 100644
index 0000000000..54531c4bdc
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/Singletons/MissingPragma.qml
@@ -0,0 +1,2 @@
+import QtQml
+QtObject {}
diff --git a/tests/auto/qml/qmllint/data/Singletons/MissingQmldirSingleton.qml b/tests/auto/qml/qmllint/data/Singletons/MissingQmldirSingleton.qml
new file mode 100644
index 0000000000..923966c483
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/Singletons/MissingQmldirSingleton.qml
@@ -0,0 +1,3 @@
+pragma Singleton
+import QtQml
+QtObject {}
diff --git a/tests/auto/qml/qmllint/data/Singletons/qmldir b/tests/auto/qml/qmllint/data/Singletons/qmldir
new file mode 100644
index 0000000000..84e9876b80
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/Singletons/qmldir
@@ -0,0 +1,3 @@
+module Singletons
+singleton MissingPragma 1.0 MissingPragma.qml
+MissingQmldirSingleton 1.0 MissingQmldirSingleton.qml