diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 00:36:07 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-06 00:36:07 (GMT) |
commit | 54e8e22a49148b089fd02895ead5c27aaf62e18e (patch) | |
tree | 71495fe7251b00c5dd103f95092eb111d845dcef /tests/auto/declarative/qmlecmascript/data | |
parent | b411c4db37bcbb5152bf8e8b225e259c05c46b59 (diff) | |
download | Qt-54e8e22a49148b089fd02895ead5c27aaf62e18e.zip Qt-54e8e22a49148b089fd02895ead5c27aaf62e18e.tar.gz Qt-54e8e22a49148b089fd02895ead5c27aaf62e18e.tar.bz2 |
Share QScriptValue's where possible
Also add an autotest for object comparisons
Diffstat (limited to 'tests/auto/declarative/qmlecmascript/data')
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml b/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml new file mode 100644 index 0000000..2526576 --- /dev/null +++ b/tests/auto/declarative/qmlecmascript/data/objectsCompareAsEqual.qml @@ -0,0 +1,15 @@ +import Qt 4.6 + +Item { + id: Root + + property var item: Child + Item { id: Child } + + property bool test1: Child == Child + property bool test2: Child.parent == Root + property bool test3: Root != Child + property bool test4: item == Child + property bool test5: item != Root +} + |