Change-Id: I796ef5e0d70a7e3a95858468583c4ecb447991ee
Task-number: QTBUG-21864
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
--- /dev/null
+var a = { b: 10 }
+var test = (typeof a) == "object"
--- /dev/null
+import "qtbug_21864.js" as Test
+import QtQuick 1.0
+
+QtObject {
+ property bool test: Test.test
+}
void qtbug_10696();
void qtbug_11606();
void qtbug_11600();
+ void qtbug_21864();
void nonscriptable();
void deleteLater();
void in();
delete o;
}
+void tst_qdeclarativeecmascript::qtbug_21864()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("qtbug_21864.qml"));
+ QObject *o = component.create();
+ QVERIFY(o != 0);
+ QCOMPARE(o->property("test").toBool(), true);
+ delete o;
+}
+
// Reading and writing non-scriptable properties should fail
void tst_qdeclarativeecmascript::nonscriptable()
{