aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsukeg@gmail.com>2014-12-15 02:33:05 +0900
committerNobuaki Sukegawa <nsukeg@gmail.com>2015-01-02 15:31:11 +0100
commit96178192c451a5e26e30e14a619b96aacd16c29b (patch)
tree3a916cd5f3efcd09e68f65f948dcc61e493c547b /tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
parent2b5fb185627f8adfb6c5b3d62990a58429bf4ea7 (diff)
Do not cause SegFault when importing empty javascript
Change-Id: I31f6571e73b5dd74bf3ade5cadc2daa02475b5cb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp')
-rw-r--r--tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
index 12d2f53596..734c9a4e1a 100644
--- a/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
+++ b/tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
@@ -2924,6 +2924,11 @@ void tst_qqmllanguage::importJs_data()
<< "importJs.10.qml"
<< "importJs.10.errors.txt"
<< true;
+
+ QTest::newRow("emptyScript")
+ << "importJs.11.qml"
+ << "importJs.11.errors.txt"
+ << true;
}
void tst_qqmllanguage::importJs()