diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2015-05-08 22:10:43 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2015-10-25 21:48:21 +0000 |
commit | 5c53861cced2d40490e4c7bfc202aadc532df4c2 (patch) | |
tree | b2d1684ea93038bbc73100878920e100513a7f25 /tests/auto/qml/qmllint/data | |
parent | d12391470f5a9b2f0ae22e11960177c5b7496a75 (diff) |
qmllint: Add unit-tests
Change-Id: Ia3eb33e89597e3811112ce78d8a59a822cc9190c
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tests/auto/qml/qmllint/data')
-rw-r--r-- | tests/auto/qml/qmllint/data/QTBUG-45916.js | 6 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/Simple.qml | 4 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/failure1.js | 5 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/failure1.qml | 5 | ||||
-rw-r--r-- | tests/auto/qml/qmllint/data/importing_js.qml | 5 |
5 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/QTBUG-45916.js b/tests/auto/qml/qmllint/data/QTBUG-45916.js new file mode 100644 index 0000000000..1947b5aa80 --- /dev/null +++ b/tests/auto/qml/qmllint/data/QTBUG-45916.js @@ -0,0 +1,6 @@ +.pragma library +.import QtQuick 2.4 as JSQtQuick + +function foo(url) +{ +} diff --git a/tests/auto/qml/qmllint/data/Simple.qml b/tests/auto/qml/qmllint/data/Simple.qml new file mode 100644 index 0000000000..db54cff477 --- /dev/null +++ b/tests/auto/qml/qmllint/data/Simple.qml @@ -0,0 +1,4 @@ +import QtQuick 2.2 + +Item { +} diff --git a/tests/auto/qml/qmllint/data/failure1.js b/tests/auto/qml/qmllint/data/failure1.js new file mode 100644 index 0000000000..6a62accf06 --- /dev/null +++ b/tests/auto/qml/qmllint/data/failure1.js @@ -0,0 +1,5 @@ +function foo() +{ + var hello + returm 0 // Typo +} diff --git a/tests/auto/qml/qmllint/data/failure1.qml b/tests/auto/qml/qmllint/data/failure1.qml new file mode 100644 index 0000000000..56f0f746a9 --- /dev/null +++ b/tests/auto/qml/qmllint/data/failure1.qml @@ -0,0 +1,5 @@ +import QtQuick 1.0 + +Item { + id root # // Missing : +} diff --git a/tests/auto/qml/qmllint/data/importing_js.qml b/tests/auto/qml/qmllint/data/importing_js.qml new file mode 100644 index 0000000000..fa6cf797db --- /dev/null +++ b/tests/auto/qml/qmllint/data/importing_js.qml @@ -0,0 +1,5 @@ +import "QTBUG-45916.js" as JSTest + +Item { + id: root +} |