aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp')
-rw-r--r--tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp b/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
index b89192130e..aaeecb9fc9 100644
--- a/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
+++ b/tests/auto/qml/qjsonbinding/tst_qjsonbinding.cpp
@@ -428,7 +428,7 @@ void tst_qjsonbinding::writeProperty_javascriptExpression_data()
QTest::newRow("object = object with function property")
<< "object" << "{ foo: function() {} }" << "{}";
QTest::newRow("array = array with function property")
- << "array" << "[function() {}]" << "[]";
+ << "array" << "[function() {}]" << "[null]";
// Inherited properties should not be included.
QTest::newRow("value = object with inherited property")
@@ -457,13 +457,13 @@ void tst_qjsonbinding::writeProperty_javascriptExpression_data()
<< "array" << "(function() { var a = [10, 20]; a.__proto__ = { proto_foo: 123 }; return a; })()"
<< "[10,20]";
- // Non-enumerable properties should be included.
+ // Non-enumerable properties should not be included.
QTest::newRow("value = object with non-enumerable property")
<< "value" << "Object.defineProperty({}, 'foo', { value: 123, enumerable: false })"
- << "{\"foo\":123}";
+ << "{}";
QTest::newRow("object = object with non-enumerable property")
<< "object" << "Object.defineProperty({}, 'foo', { value: 123, enumerable: false })"
- << "{\"foo\":123}";
+ << "{}";
// Cyclic data structures are permitted, but the cyclic links become
// empty objects.