Fix various errors in the qjsvalue auto test
authorLars Knoll <lars.knoll@digia.com>
Fri, 7 Jun 2013 12:06:36 +0000 (14:06 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 7 Jun 2013 17:17:02 +0000 (19:17 +0200)
commit21f5744d45ffc07af7978a9f5b382e99f78c2d31
tree83e7886a6e49b00ac52ab0d2124504abedac1f32
parentd3243caf5a181855f6344c072f8dddea193d48fa
Fix various errors in the qjsvalue auto test

Fix creation of Array's from a QStringList
Properly implement toVariant()
Fix VariantObject::toString()
Fix conversion of variant lists to JS values
Remove an XFAIL

Allow comparison of QJSValue objects created from different
engines. There's no reason why we can't simply do this with v4.

Change-Id: I8d8c597dbb032926501508d60bd80622ec964d67
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4/qv4object.cpp
src/qml/qml/v4/qv4runtime.cpp
src/qml/qml/v4/qv4value_p.h
src/qml/qml/v4/qv4variantobject.cpp
src/qml/qml/v8/qv8engine.cpp
tests/auto/qml/qjsvalue/tst_qjsvalue.cpp