diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 07:18:54 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-09 07:18:54 (GMT) |
commit | 06c286b74274166a47df20dc425f76051fb03d4d (patch) | |
tree | b2b8376b9844dbb5c24e0749d512d5e9c0cd1bea /tests/auto/declarative/qdeclarativeecmascript/data | |
parent | da8dda3a3b66fed6d5da878f3b4617aa0b5f3953 (diff) | |
download | Qt-06c286b74274166a47df20dc425f76051fb03d4d.zip Qt-06c286b74274166a47df20dc425f76051fb03d4d.tar.gz Qt-06c286b74274166a47df20dc425f76051fb03d4d.tar.bz2 |
Fix crash in QML library imports
QTBUG-9705
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.js | 6 | ||||
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.qml | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.js b/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.js new file mode 100644 index 0000000..3ffdb33 --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.js @@ -0,0 +1,6 @@ +.pragma library + +function test(target) +{ + var a = target.a; +} diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.qml b/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.qml new file mode 100644 index 0000000..9e8408f --- /dev/null +++ b/tests/auto/declarative/qdeclarativeecmascript/data/libraryScriptAssert.qml @@ -0,0 +1,7 @@ +import Qt 4.6 +import "libraryScriptAssert.js" as Test + +QtObject { + id: root + Component.onCompleted: Test.test(root); +} |